escalier-lang / escalier-next

Improved type safety with tight TypeScript interop
https://escalier-lang.github.io/escalier-next/
MIT License
14 stars 0 forks source link

Infer `keyof any` as `string | number | symbol` when migrating TypeScript to Escalier source #225

Open kevinbarabash opened 7 months ago

kevinbarabash commented 7 months ago

Right now the following TypeScript

type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;

is inferred as:

<T, K: keyof t5>(Pick<T, Exclude<keyof T, K>>)