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
Sorry if I'm doing something wrong.
If I have two files, environment.d.ts and state.d.ts with the following types
environment.d.ts
state.d.ts
export type Environment = 'production' | 'development';
import { Environment } from './state'; export interface State { currentEnvironment: Environment; }
the resulting Kotlin declaration should have currentEnvironment as a string, but it is
currentEnvironment
external interface State { var currentEnvironment: Any }
If I move the string union into the same file, it works
TypeScript
export type Environment = 'production' | 'development'; export interface SameFileState { currentEnvironment: Environment; }
Kotlin
external interface SameFileState { var currentEnvironment: String /* 'production' | 'development' */ }
The text was updated successfully, but these errors were encountered:
Resolve correctly exported type aliases
a111778
see #270 see #299
No branches or pull requests
Sorry if I'm doing something wrong.
If I have two files,
environment.d.ts
andstate.d.ts
with the following typesenvironment.d.ts
state.d.ts
the resulting Kotlin declaration should have
currentEnvironment
as a string, but it isIf I move the string union into the same file, it works
TypeScript
Kotlin
The text was updated successfully, but these errors were encountered: