Fails to generate types with a library that defines enums
See original GitHub issueWhen I attempt to generate types I am getting this error Error occured: Unknown type: ALib.BOOL
I have attached a minimal example: Archive.zip
To repro: yarn && yarn build
The error seems to be the same as https://github.com/ethereum-ts/TypeChain/issues/125 but is still happening
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Fails to generate types with a library that defines enums #216
When I attempt to generate types I am getting this error Error occured: Unknown type: ALib.BOOL I have attached a minimal example: Archive.zip...
Read more >typescript - Enum type not defined at runtime - Stack Overflow
@MattArnold the error is that you can only use string literals to index a const enum. That error is probably being hidden due...
Read more >Handbook - Enums - TypeScript
Enums allow a developer to define a set of named constants. ... Instead, use keyof typeof to get a Type that represents all...
Read more >TypeScript string enums, and when and how to use them
As of TypeScript ≥ version 1.8, we can create string literal types. Specifically, string literal types allows us to define a type that ......
Read more >TypeScript Enums I Want to Actually Use - Robin Pokorny
The definition looks similar to the definition of an interface. There is one interesting property of an Enum: it defines both types and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should be fixed now! Relased as
typechain@2.0.1
Sorry I missed it 😆 I will work on this later today