Skip to content

Does abitype work on JSON files imported as modules? #46

Closed Answered by tmm
0xOlias asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately TypeScript doesn't support importing JSON as const right now. The best option is to change the file to .ts and add a const assertion there.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@roninjin10
Comment options

@tmm
Comment options

@roninjin10
Comment options

@0xOlias
Comment options

@roninjin10
Comment options

Answer selected by 0xOlias
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants