mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Accept new baselines
This commit is contained in:
@@ -19,14 +19,14 @@
|
||||
// * @param onrejected The callback to execute when the Promise is rejected.
|
||||
// * @returns A Promise for the completion of which ever callback is executed.
|
||||
// */
|
||||
// then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
||||
// then<TResult1 = T, TResult2 = never>(deferred onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, deferred onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
||||
//
|
||||
// /**
|
||||
// * Attaches a callback for only the rejection of the Promise.
|
||||
// * @param onrejected The callback to execute when the Promise is rejected.
|
||||
// * @returns A Promise for the completion of the callback.
|
||||
// */
|
||||
// catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
|
||||
// catch<TResult = never>(deferred onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
|
||||
// }|>
|
||||
//
|
||||
// /**
|
||||
@@ -80,14 +80,14 @@
|
||||
// * @param onrejected The callback to execute when the Promise is rejected.
|
||||
// * @returns A Promise for the completion of which ever callback is executed.
|
||||
// */
|
||||
// then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
||||
// then<TResult1 = T, TResult2 = never>(deferred onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, deferred onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
||||
//
|
||||
// /**
|
||||
// * Attaches a callback for only the rejection of the Promise.
|
||||
// * @param onrejected The callback to execute when the Promise is rejected.
|
||||
// * @returns A Promise for the completion of the callback.
|
||||
// */
|
||||
// catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
|
||||
// catch<TResult = never>(deferred onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
|
||||
// }|>
|
||||
//
|
||||
// /**
|
||||
|
||||
Reference in New Issue
Block a user