GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Regression in TypeScript 7: generic inference for a Ref/tuple intersection · Issue #65709 · microsoft/TypeScript Backlog Labels Working as IntendedThe behavior described is the intended behavior; this is not a bug Description🔎 Search Terms
🕗 Version & Regression Information
The issue also reproduces with the latest nightly. ⏯ Playground LinkNo response 💻 CodeRun with interface Ref<T, S = T> { get value(): T; set value(value: S); } type ModelRef<T, M extends PropertyKey = string, G = T, S = T> = Ref<G, S> & [ ModelRef<T, M, G, S>, Record<M, true | undefined>, ]; type Item = { name: string }; declare const rows: ModelRef<Item[]>; type GridRowsTarget<T> = Ref<T[]> | T[]; declare function makeHandler<T>( rows: GridRowsTarget<T>, ): (params: { data?: T }) => void; const remove = makeHandler(rows); remove({ data: { name: 'example' } }); const explicit = makeHandler<Item>(rows); explicit({ data: { name: 'example' } }); 🙁 Actual behaviorTypeScript 7 reports an error on the It appears to infer 🙂 Expected behaviorAs in TypeScript 6.0.3, infer Additional information about the issueThe types are simplified stand-ins for Vue's Possibly related: #59521, although that issue concerns conditional inference and predates this regression. Activity
MetadataMetadataAssigneesLabelsWorking as IntendedThe behavior described is the intended behavior; this is not a bug TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |