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 — string is not assignable to unbounded generic type T · Issue #18397 · microsoft/TypeScript Closed Labels Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug DescriptionTypeScript Version: 2.4.2 / Typescript playground Code export interface Storage { getItem<T>(onComplete?: OnComplete<T>): Promise<T>; } export type OnComplete<T> = (err?: any, result?: T) => any; let storage: Storage = { getItem: (onComplete: OnComplete<string>) => { return Promise.resolve("Yay"); } }; Expected behavior: Actual behavior: Activity
MetadataMetadataAssigneesLabelsWorking as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug 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. |