dukat icon indicating copy to clipboard operation
dukat copied to clipboard

Utility types from TS not bound correctly

Open sundermann opened this issue 4 years ago • 2 comments

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

sundermann avatar Aug 19 '20 11:08 sundermann

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

Schahen avatar Aug 24 '20 15:08 Schahen

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.

sundermann avatar Aug 24 '20 16:08 sundermann