Replies: 1 comment 1 reply
-
Hi @nckrtl, We (at Spatie) actually don't use native enums (so the value is |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to using the enums exported by this package in Vue, but they don't seem usable. I'm exporting my enums to native TS enums with the config option:
'transform_to_native_enums' => true,
. The generated enums in generated.d.ts are looking fine:However I can't reference the enum as I get an "Can't find variable: App" error. As I understand the enums are only available for Typescript references but can't be used as values in Vue. Is there a way to accomplish this? Ideally I'd like to use the enums in generated.d.ts instead of manually maintaining an separate enums file.
Beta Was this translation helpful? Give feedback.
All reactions