[K/JS] Generating TypeScript definitions for exceptions and rest of the types ^Fixed KT-53940
This commit is contained in:
+3
@@ -42,5 +42,8 @@ declare namespace JS_TESTS {
|
||||
const console: Console;
|
||||
const error: WebAssembly.CompileError;
|
||||
function functionWithTypeAliasInside(x: any/* foo.NonExportedGenericInterface<foo.NonExportedType> */): any/* foo.NonExportedGenericInterface<foo.NonExportedType> */;
|
||||
class TheNewException extends Error {
|
||||
constructor();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+4
-1
@@ -92,4 +92,7 @@ typealias NotExportedTypeAlias = NonExportedGenericInterface<NonExportedType>
|
||||
@JsExport
|
||||
fun functionWithTypeAliasInside(x: NotExportedTypeAlias): NotExportedTypeAlias {
|
||||
return x
|
||||
}
|
||||
}
|
||||
|
||||
@JsExport
|
||||
class TheNewException: Throwable()
|
||||
Reference in New Issue
Block a user