-
Notifications
You must be signed in to change notification settings - Fork 36
[interop] Resolved Namespace typedef
and exception improvements
#459
New issue
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
base: main
Are you sure you want to change the base?
Conversation
- improved exception for not finding type - resolved def if cannot find file in path/module (i.e maybe a module already resolved by ts/node)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add a test for this as well when you're ready.
final transformer = | ||
if (src == null && !strictUnsupported) { | ||
// print warning | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: need a warning :)
switch (decl.kind) { | ||
case TSSyntaxKind.ClassDeclaration || | ||
TSSyntaxKind.InterfaceDeclaration: | ||
final outputDecl = outputDecls.first as TypeDeclaration; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Should these by single
calls instead of first
here and in the below cases (besides default
)?
@@ -1527,6 +1520,17 @@ class Transformer { | |||
bool isNotTypableDeclaration = false, | |||
bool typeArg = false, | |||
bool isNullable = false}) { | |||
print(( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: stray print
@@ -1613,6 +1619,12 @@ class Transformer { | |||
} | |||
|
|||
// get node finally | |||
print(( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: stray print
This PR makes a couple of fixes to the web-generator, as well as some minor additions to previous features
typedef
in namespaces