File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77export type ErrorCallback = ( error : any ) => void ;
88
99export class Promise < T = any > {
10- constructor (
11- executor : (
12- resolve : ( value : T | PromiseLike < T > ) => void ,
13- reject : ( reason : any ) => void ) => void ,
14- oncancel ?: ( ) => void ) ;
10+ constructor ( executor : ( resolve : ( value : T | PromiseLike < T > ) => void , reject : ( reason : any ) => void ) => void ) ;
1511
1612 public then < TResult1 = T , TResult2 = never > (
1713 onfulfilled ?: ( ( value : T ) => TResult1 | PromiseLike < TResult1 > ) | null ,
1814 onrejected ?: ( ( reason : any ) => TResult2 | PromiseLike < TResult2 > ) | null ) : Promise < TResult1 | TResult2 > ;
1915
20- public cancel ( ) : void ;
2116
2217 public static as ( value : null ) : Promise < null > ;
2318 public static as ( value : undefined ) : Promise < undefined > ;
Original file line number Diff line number Diff line change @@ -39,17 +39,12 @@ declare namespace monaco {
3939
4040
4141 export class Promise < T = any > {
42- constructor (
43- executor : (
44- resolve : ( value : T | PromiseLike < T > ) => void ,
45- reject : ( reason : any ) => void ) => void ,
46- oncancel ?: ( ) => void ) ;
42+ constructor ( executor : ( resolve : ( value : T | PromiseLike < T > ) => void , reject : ( reason : any ) => void ) => void ) ;
4743
4844 public then < TResult1 = T , TResult2 = never > (
4945 onfulfilled ?: ( ( value : T ) => TResult1 | PromiseLike < TResult1 > ) | null ,
5046 onrejected ?: ( ( reason : any ) => TResult2 | PromiseLike < TResult2 > ) | null ) : Promise < TResult1 | TResult2 > ;
5147
52- public cancel ( ) : void ;
5348
5449 public static as ( value : null ) : Promise < null > ;
5550 public static as ( value : undefined ) : Promise < undefined > ;
You can’t perform that action at this time.
0 commit comments