mirror of
https://github.com/denoland/deno
synced 2024-09-13 05:11:43 +00:00
29 lines
785 B
Plaintext
29 lines
785 B
Plaintext
[WILDCARD]error TS2322: Type '(o: T) => { v: any; f: (x: B) => string; }[]' is not assignable to type '(r: B) => Value<B>[]'.
|
|
Types of parameters 'o' and 'r' are incompatible.
|
|
Type 'B' is not assignable to type 'T'.
|
|
'B' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'.
|
|
|
|
[WILDCARD]tests/error_003_typescript.ts:20:3
|
|
|
|
20 values: o => [
|
|
~~~~~~
|
|
|
|
The expected type comes from property 'values' which is declared here on type 'C<B>'
|
|
|
|
[WILDCARD]tests/error_003_typescript.ts:8:3
|
|
|
|
8 values?: (r: T) => Array<Value<T>>;
|
|
~~~~~~
|
|
|
|
|
|
error TS2339: Property 't' does not exist on type 'T'.
|
|
|
|
[WILDCARD]tests/error_003_typescript.ts:22:12
|
|
|
|
22 v: o.t,
|
|
^
|
|
|
|
|
|
Found 2 errors.
|
|
|