You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Property 'doStuff' is missing in type '{ value: string; }'.
5
5
tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts(10,17): error TS2345: Argument of type '{ value: string; what: number; }' is not assignable to parameter of type 'I2'.
6
6
Object literal may only specify known properties, and 'what' does not exist in type 'I2'.
7
-
tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts(11,4): error TS2345: Argument of type '{ toString: (s: any) => any; }' is not assignable to parameter of type 'I2'.
8
-
Property 'value' is missing in type '{ toString: (s: any) => any; }'.
9
-
tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts(12,4): error TS2345: Argument of type '{ toString: (s: string) => string; }' is not assignable to parameter of type 'I2'.
10
-
Property 'value' is missing in type '{ toString: (s: string) => string; }'.
11
-
tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts(13,4): error TS2345: Argument of type '{ value: string; toString: (s: any) => any; }' is not assignable to parameter of type 'I2'.
12
-
Property 'doStuff' is missing in type '{ value: string; toString: (s: any) => any; }'.
7
+
tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts(11,6): error TS2345: Argument of type '{ toString: (s: any) => any; }' is not assignable to parameter of type 'I2'.
8
+
Object literal may only specify known properties, and 'toString' does not exist in type 'I2'.
9
+
tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts(12,6): error TS2345: Argument of type '{ toString: (s: string) => string; }' is not assignable to parameter of type 'I2'.
10
+
Object literal may only specify known properties, and 'toString' does not exist in type 'I2'.
11
+
tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts(13,17): error TS2345: Argument of type '{ value: string; toString: (s: any) => any; }' is not assignable to parameter of type 'I2'.
12
+
Object literal may only specify known properties, and 'toString' does not exist in type 'I2'.
0 commit comments