mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
3.4 KiB
Diff
24 lines
3.4 KiB
Diff
--- old.promisePermutations2.errors.txt
|
|
+++ new.promisePermutations2.errors.txt
|
|
@@= skipped -101, +101 lines =@@
|
|
Type 'Promise<number>' is not assignable to type 'Promise<string>'.
|
|
Type 'number' is not assignable to type 'string'.
|
|
promisePermutations2.ts(159,21): error TS2345: Argument of type '{ (x: number): Promise<number>; (x: string): Promise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
|
- Call signature return types 'Promise<number>' and 'IPromise<string>' are incompatible.
|
|
- The types of 'then' are incompatible between these types.
|
|
+ Type 'Promise<number>' is not assignable to type 'IPromise<string>'.
|
|
+ Types of property 'then' are incompatible.
|
|
Type '{ <TResult1 = number, TResult2 = never>(onfulfilled?: (value: number) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>): Promise<TResult1 | TResult2>; <U>(success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Promise<U>; }' is not assignable to type '{ <U>(success?: (value: string) => IPromise<U>, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>; <U>(success?: (value: string) => IPromise<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>; <U>(success?: (value: string) => U, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>; <U>(success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>; }'.
|
|
Types of parameters 'onfulfilled' and 'success' are incompatible.
|
|
Types of parameters 'value' and 'value' are incompatible.
|
|
@@= skipped -317, +317 lines =@@
|
|
var s11c = s11.then(testFunction11P, testFunction11, testFunction11); // ok
|
|
~~~~~~~~~~~~~~~
|
|
!!! error TS2345: Argument of type '{ (x: number): Promise<number>; (x: string): Promise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
|
-!!! error TS2345: Call signature return types 'Promise<number>' and 'IPromise<string>' are incompatible.
|
|
-!!! error TS2345: The types of 'then' are incompatible between these types.
|
|
+!!! error TS2345: Type 'Promise<number>' is not assignable to type 'IPromise<string>'.
|
|
+!!! error TS2345: Types of property 'then' are incompatible.
|
|
!!! error TS2345: Type '{ <TResult1 = number, TResult2 = never>(onfulfilled?: (value: number) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>): Promise<TResult1 | TResult2>; <U>(success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Promise<U>; }' is not assignable to type '{ <U>(success?: (value: string) => IPromise<U>, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>; <U>(success?: (value: string) => IPromise<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>; <U>(success?: (value: string) => U, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>; <U>(success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>; }'.
|
|
!!! error TS2345: Types of parameters 'onfulfilled' and 'success' are incompatible.
|
|
!!! error TS2345: Types of parameters 'value' and 'value' are incompatible.
|