Kotlin / dukat

Converter of <any kind of declarations> to Kotlin external declarations
557 stars 42 forks source link

Utility types from TS not bound correctly #378

Open sundermann opened 4 years ago

sundermann commented 4 years ago

When trying to create bindings for vue@next, bindings for some utility types from typescript are just bound to Any.

From lib.es5.d.ts

/**
 * Construct a type with a set of properties K of type T
 */
type Record<K extends keyof any, T> = {
    [P in K]: T;
};

Ends up being bound as:

typealias Record<K, T> = Any
Schahen commented 4 years ago

Can you please provide a snippet of code what you'd rather expect to have as a result?

sundermann commented 4 years ago

I'm quite new to Kotlin/JS, so I'm not sure how to bind this specific type. But I guess you want to pass a Map<String, Any> type like structure here.