Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Type resolver does not recognise enums #4

Closed
kaleidawave opened this issue Oct 7, 2020 · 0 comments
Closed

Type resolver does not recognise enums #4

kaleidawave opened this issue Oct 7, 2020 · 0 comments
Assignees
Labels
chef/javascript JS parsing and rendering enhancement New feature or request

Comments

@kaleidawave
Copy link
Owner

Given a enum in the module trying to resolve the properties of that type throws a error: Error: Could not find type: X in module

const mod = Module.fromString(`enum X { A, B }`);
console.log(typeSignatureToIType(new TypeSignature("X"), mod));

typeSignatureToIType should return enums to be of type number (or string). Think that is good enough

@kaleidawave kaleidawave added enhancement New feature or request chef/javascript JS parsing and rendering labels Oct 7, 2020
@kaleidawave kaleidawave self-assigned this Oct 7, 2020
@kaleidawave kaleidawave mentioned this issue Oct 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
chef/javascript JS parsing and rendering enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant