FroggyPanda / better-supabase-types

73 stars 13 forks source link

Convert enums to pascal case #24

Closed 0x62 closed 1 year ago

0x62 commented 1 year ago

It would be great if there was an option to convert enum keys to pascal case. For example:

export enum Role {
  share = "share",
  update = "update",
  transfer = "transfer",
  group_admin = "group_admin",
  admin = "admin",
}

Would be converted to:

export enum Role {
  Share = "share",
  Update = "update",
  Transfer = "transfer",
  GroupAdmin = "group_admin",
  Admin = "admin",
}
FroggyPanda commented 1 year ago

@0x62 Please take a look at the liked PR and let me know if you have something else in mind.