7nohe / laravel-typegen

The library lets you generate TypeScript types from your Laravel code
79 stars 5 forks source link

Option to use objects instead of enums #13

Open 7nohe opened 1 year ago

7nohe commented 1 year ago

use

export const GenderType = {
    Male: "Male",
    Female: "Female",
    Other: "Other"
} as const

instead of

export enum GenderType {
    Male = "Male",
    Female = "Female",
    Other = "Other"
}