Closed aschmidt93 closed 2 months ago
When importing an enum from another .cds file, the generated file only exports the type alias but not the const variable. Also see #194
v0.20.1
// schema.cds type MyEnum : String enum { Foo; Bar; }
// service.cds type MyEnum : schema.MyEnum;
// service index.ts export type MyEnum = _de_example.MyEnum;
Export the const, too.
No response
Hi @aschmidt93 ,
I have prepared a PR to introduce this feature. Would you like to check it out before the merge?
Best, Daniel
Hi @daogrady,
thank you it works as intended.
Description
When importing an enum from another .cds file, the generated file only exports the type alias but not the const variable. Also see #194
v0.20.1
Suggested Solution
Export the const, too.
Alternatives
No response
Additional Context
No response