question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails to generate types with a library that defines enums

See original GitHub issue

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 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
krzkaczorcommented, Oct 5, 2020

This should be fixed now! Relased as typechain@2.0.1

1reaction
krzkaczorcommented, Oct 1, 2020

Sorry I missed it 😆 I will work on this later today

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found