kaleidawave / prism

(No longer in development). Experimental compiler for building isomorphic web applications with web components.
MIT License
110 stars 1 forks source link

Type resolver does not recognise enums #4

Closed kaleidawave closed 4 years ago

kaleidawave commented 4 years ago

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