DEV Community

Discussion on: How to proper use ambient enum from Definition file

Collapse
 
beraliv profile image
beraliv

Hey, thank you for your article!

Why do you need to declare enum in declaration file?

Collapse
 
zapkub profile image
Rungsikorn Rungsikavanich

@beraliv There is sometime that we may need to use our module as ambient module 🤓

Collapse
 
beraliv profile image
beraliv

For my benefit, could you please give me one example so I will understand you better?

I didn't use ambient enums before. Maybe you have an example in OSS library where I can have a look at the usage?