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 — Keyof doesn't see all apparent members · Issue #16578 · microsoft/TypeScript Closed Labels By DesignDeprecated - use "Working as Intended" or "Design Limitation" insteadDeprecated - use "Working as Intended" or "Design Limitation" instead DescriptionTypeScript Version: playground function check<T, K extends keyof T>(obj: T, key: K): T[K] { return obj[key]; } function fn(){} var f1: Function = fn; var f2: {():void} = fn; check(f1, "bind"); //ok check(f2, "bind"); //error f2.bind; //ok Expected behavior: An index type query keyof T yields the type of permitted property names for T Form spec:
Actual behavior: Activity
MetadataMetadataAssigneesLabelsBy DesignDeprecated - use "Working as Intended" or "Design Limitation" insteadDeprecated - use "Working as Intended" or "Design Limitation" instead TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — 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. |