Skip to content

How to use enum type values? #80723

Answered by icyJoseph
bbhxwl asked this question in Help
Jun 20, 2025 · 1 comments · 1 reply

You must be logged in to vote

Hi,

Change to a .ts file. There's some details about .d.ts files that you probably don't want to deal with here.

In general a .d.ts file is to model some existing JavaScript file, so that TypeScript can understand it. If you are working in TypeScript already, you don't need those, just use filename.ts

In your case, TypeScript is looking for a types/index.js file. Once again just use types/index.ts

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@bbhxwl

Answer selected by bbhxwl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants