Open Vampire opened 3 years ago
These are the according TS declarations:
export declare class ValidationError extends Error {
constructor(message: string);
}
export declare class ReserveCacheError extends Error {
constructor(message: string);
}
The fact that type aliases might end up in a @file:JsModule
/ @file:JsQualifier
-annotated file is a separate bug per se.
Actually the file does not have a JsModule
or JsQualifier
annotation given by Dukat.
I insert them after generation.
Probably due to #240
@actions/http-client
1.0.9 has the same problem now with typealias HttpClientError = Error
.
If you generate for
@actions/cache
, the generatedcache.module_@actions_cache.kt
containsThis has three problems.
Error
is mapped toThrowable
in Kotlin, so if at all, they should be aliases forThrowable
JsModule
annotation was added