* Handle generic mapped types in getTypeOfPropertyOfContextualType. The changes to existing baselines look acceptable to me. Fixes #24694. * Minor reorganization, add test case from @yortus
6 lines
207 B
TypeScript
6 lines
207 B
TypeScript
// Repro for #24694
|
|
// @noImplicitAny: true
|
|
|
|
declare function f<T extends object>(data: T, handlers: { [P in keyof T]: (value: T[P], prop: P) => void; }): void;
|
|
f({ data: 0 }, { data(value, key) {} });
|