We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All of the code generation classes are exported under a top level CodeGen object:
CodeGen
https://github.com/accordproject/concerto/blob/master/packages/concerto-tools/index.js
The TypeScript definitions do not reflect this:
https://github.com/accordproject/concerto/blob/master/packages/concerto-tools/types/index.d.ts
So you can compile TypeScript that does this:
import { JSONSchemaVisitor } from '@accordproject/concerto-tools';
But it fails at runtime:
TypeError: concerto_tools_1.JSONSchemaVisitor is not a constructor
The text was updated successfully, but these errors were encountered:
fix(typescript): wrap codegen types in namespace (resolves accordproj…
9ed0870
…ect#318) Signed-off-by: Simon Stone <[email protected]>
2828a6c
No branches or pull requests
All of the code generation classes are exported under a top level
CodeGen
object:https://github.com/accordproject/concerto/blob/master/packages/concerto-tools/index.js
The TypeScript definitions do not reflect this:
https://github.com/accordproject/concerto/blob/master/packages/concerto-tools/types/index.d.ts
So you can compile TypeScript that does this:
import { JSONSchemaVisitor } from '@accordproject/concerto-tools';
But it fails at runtime:
TypeError: concerto_tools_1.JSONSchemaVisitor is not a constructor
The text was updated successfully, but these errors were encountered: