We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
now that we have map types it would nice being able to map properties to function parameters
type Constructor<T> = (P in T) => T; interface Data { name: string; value: number; } type CreateData = Constructor<Data>;
would desugar to
type CreateData = (name: string, value: number) => Data;