/third_party/node/deps/npm/node_modules/es6-promise/ |
D | es6-promise.d.ts | 1 export interface Thenable <R> { interface 2 …then <U> (onFulfilled?: (value: R) => U | Thenable<U>, onRejected?: (error: any) => U | Thenable<U… 3 …then <U> (onFulfilled?: (value: R) => U | Thenable<U>, onRejected?: (error: any) => void): Thenabl… 6 export class Promise <R> implements Thenable <R> { 14 …constructor (callback: (resolve : (value?: R | Thenable<R>) => void, reject: (error?: any) => void… 26 …then <U> (onFulfilled?: (value: R) => U | Thenable<U>, onRejected?: (error: any) => U | Thenable<U… 27 …then <U> (onFulfilled?: (value: R) => U | Thenable<U>, onRejected?: (error: any) => void): Promise… 34 catch <U> (onRejected?: (error: any) => U | Thenable<U>): Promise<U>; 45 finally (onFinally?: () => any | Thenable<any>): Promise<R>; 52 static resolve <R> (value: R | Thenable<R>): Promise<R>; [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | bluebirdStaticThis.types | 6 export declare class Promise<R> implements Promise.Thenable<R> { 10 …constructor(callback: (resolve: (thenableOrResult: R | Promise.Thenable<R>) => void, reject: (erro… 11 >callback : (resolve: (thenableOrResult: R | Promise.Thenable<R>) => void, reject: (error: any) => … 12 >resolve : (thenableOrResult: R | Promise.Thenable<R>) => void 13 >thenableOrResult : R | Promise.Thenable<R> 18 …static try<R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Promis… 19 >try : { <R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Promise<… 22 >fn : () => Promise.Thenable<R> 28 >try : { <R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Promise<… 35 …static attempt<R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Pr… [all …]
|
D | bluebirdStaticThis.js | 6 export declare class Promise<R> implements Promise.Thenable<R> { 7 …constructor(callback: (resolve: (thenableOrResult: R | Promise.Thenable<R>) => void, reject: (erro… 8 …static try<R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Promis… 11 …static attempt<R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Pr… 17 static resolve<R>(dit: typeof Promise, value: Promise.Thenable<R>): Promise<R>; 25 static cast<R>(dit: typeof Promise, value: Promise.Thenable<R>): Promise<R>; 34 static delay<R>(dit: typeof Promise, value: Promise.Thenable<R>, ms: number): Promise<R>; 50 … static all<R>(dit: typeof Promise, values: Promise.Thenable<Promise.Thenable<R>[]>): Promise<R[]>; 51 static all<R>(dit: typeof Promise, values: Promise.Thenable<R[]>): Promise<R[]>; 52 static all<R>(dit: typeof Promise, values: Promise.Thenable<R>[]): Promise<R[]>; [all …]
|
D | bluebirdStaticThis.errors.txt | 1 …aticThis.ts(5,22): error TS2420: Class 'Promise<R>' incorrectly implements interface 'Thenable<R>'. 2 Property 'then' is missing in type 'Promise<R>' but required in type 'Thenable<R>'. 15 export declare class Promise<R> implements Promise.Thenable<R> { 17 !!! error TS2420: Class 'Promise<R>' incorrectly implements interface 'Thenable<R>'. 18 !!! error TS2420: Property 'then' is missing in type 'Promise<R>' but required in type 'Thenable<… 20 …constructor(callback: (resolve: (thenableOrResult: R | Promise.Thenable<R>) => void, reject: (erro… 21 …static try<R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Promis… 24 …static attempt<R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Pr… 30 static resolve<R>(dit: typeof Promise, value: Promise.Thenable<R>): Promise<R>; 40 static cast<R>(dit: typeof Promise, value: Promise.Thenable<R>): Promise<R>; [all …]
|
D | bluebirdStaticThis.symbols | 6 export declare class Promise<R> implements Promise.Thenable<R> { 9 >Promise.Thenable : Symbol(Promise.Thenable, Decl(bluebirdStaticThis.ts, 110, 31)) 11 >Thenable : Symbol(Promise.Thenable, Decl(bluebirdStaticThis.ts, 110, 31)) 14 …constructor(callback: (resolve: (thenableOrResult: R | Promise.Thenable<R>) => void, reject: (erro… 20 >Thenable : Symbol(Promise.Thenable, Decl(bluebirdStaticThis.ts, 110, 31)) 25 …static try<R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Promis… 32 >Thenable : Symbol(Promise.Thenable, Decl(bluebirdStaticThis.ts, 110, 31)) 51 …static attempt<R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Pr… 58 >Thenable : Symbol(Promise.Thenable, Decl(bluebirdStaticThis.ts, 110, 31)) 91 static resolve<R>(dit: typeof Promise, value: Promise.Thenable<R>): Promise<R>; [all …]
|
D | asyncFunctionDeclaration15_es5.types | 2 declare class Thenable { then(): void; } 3 >Thenable : Thenable 13 declare let thenable: Thenable; 14 >thenable : Thenable 31 async function fn6(): Thenable { } // error 32 >fn6 : () => Thenable 59 >thenable : Thenable 89 >thenable : Thenable
|
D | asyncFunctionDeclaration15_es6.types | 2 declare class Thenable { then(): void; } 3 >Thenable : Thenable 13 declare let thenable: Thenable; 14 >thenable : Thenable 31 async function fn6(): Thenable { } // error 32 >fn6 : () => Thenable 59 >thenable : Thenable 89 >thenable : Thenable
|
D | asyncFunctionDeclaration15_es5.symbols | 2 declare class Thenable { then(): void; } 3 >Thenable : Symbol(Thenable, Decl(asyncFunctionDeclaration15_es5.ts, 0, 0)) 4 >then : Symbol(Thenable.then, Decl(asyncFunctionDeclaration15_es5.ts, 0, 24)) 13 declare let thenable: Thenable; 15 >Thenable : Symbol(Thenable, Decl(asyncFunctionDeclaration15_es5.ts, 0, 0)) 33 async function fn6(): Thenable { } // error 35 >Thenable : Symbol(Thenable, Decl(asyncFunctionDeclaration15_es5.ts, 0, 0))
|
D | asyncFunctionDeclaration15_es6.symbols | 2 declare class Thenable { then(): void; } 3 >Thenable : Symbol(Thenable, Decl(asyncFunctionDeclaration15_es6.ts, 0, 0)) 4 >then : Symbol(Thenable.then, Decl(asyncFunctionDeclaration15_es6.ts, 0, 24)) 13 declare let thenable: Thenable; 15 >Thenable : Symbol(Thenable, Decl(asyncFunctionDeclaration15_es6.ts, 0, 0)) 33 async function fn6(): Thenable { } // error 35 >Thenable : Symbol(Thenable, Decl(asyncFunctionDeclaration15_es6.ts, 0, 0))
|
D | asyncFunctionDeclaration15_es5.js | 2 declare class Thenable { then(): void; } 5 declare let thenable: Thenable; 11 async function fn6(): Thenable { } // error 54 return __awaiter(this, void 0, Thenable, function () { return __generator(this, function (_a) {
|
D | asyncFunctionDeclaration15_es6.js | 2 declare class Thenable { then(): void; } 5 declare let thenable: Thenable; 11 async function fn6(): Thenable { } // error
|
D | asyncFunctionDeclaration15_es5.errors.txt | 7 …ns/asyncFunctionDeclaration15_es5.ts(10,23): error TS1055: Type 'typeof Thenable' is not a valid a… 8 Construct signature return types 'Thenable' and 'PromiseLike<T>' are incompatible. 16 declare class Thenable { then(): void; } 19 declare let thenable: Thenable; 37 async function fn6(): Thenable { } // error 39 !!! error TS1055: Type 'typeof Thenable' is not a valid async function return type in ES5/ES3 becau… 40 !!! error TS1055: Construct signature return types 'Thenable' and 'PromiseLike<T>' are incompatib…
|
D | asyncFunctionDeclaration15_es6.errors.txt | 13 declare class Thenable { then(): void; } 16 declare let thenable: Thenable; 34 async function fn6(): Thenable { } // error
|
/third_party/typescript/tests/cases/compiler/ |
D | bluebirdStaticThis.ts | 5 export declare class Promise<R> implements Promise.Thenable<R> { 6 …constructor(callback: (resolve: (thenableOrResult: R | Promise.Thenable<R>) => void, reject: (erro… 7 …static try<R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Promis… 10 …static attempt<R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Pr… 16 static resolve<R>(dit: typeof Promise, value: Promise.Thenable<R>): Promise<R>; 24 static cast<R>(dit: typeof Promise, value: Promise.Thenable<R>): Promise<R>; 33 static delay<R>(dit: typeof Promise, value: Promise.Thenable<R>, ms: number): Promise<R>; 49 … static all<R>(dit: typeof Promise, values: Promise.Thenable<Promise.Thenable<R>[]>): Promise<R[]>; 50 static all<R>(dit: typeof Promise, values: Promise.Thenable<R[]>): Promise<R[]>; 51 static all<R>(dit: typeof Promise, values: Promise.Thenable<R>[]): Promise<R[]>; [all …]
|
/third_party/typescript/tests/cases/conformance/async/es5/functionDeclarations/ |
D | asyncFunctionDeclaration15_es5.ts | 4 declare class Thenable { then(): void; } class 7 declare let thenable: Thenable; 13 async function fn6(): Thenable { } // error
|
/third_party/typescript/tests/cases/conformance/async/es6/functionDeclarations/ |
D | asyncFunctionDeclaration15_es6.ts | 3 declare class Thenable { then(): void; } class 6 declare let thenable: Thenable; 12 async function fn6(): Thenable { } // error
|
/third_party/typescript_eslint/packages/eslint-plugin/docs/rules/ |
D | await-thenable.md | 1 # Disallows awaiting a value that is not a Thenable (`await-thenable`) 3 This rule disallows awaiting a value that is not a "Thenable" (an object which has `then` method, s…
|
D | promise-function-async.md | 54 "allowedPromiseNames": ["Thenable"],
|
/third_party/typescript_eslint/packages/eslint-plugin/ |
D | README.md | 102 … | Disallows awaiting a value that is not a Thenable …
|