TS7008
error TS7008: Member ‘
name
‘ implicitly has an ‘any’ type.
Broken Code ❌
1 |
|
Fixed Code ✔️
To fix the problem, you can initialize the class member so that TypeScript can infer the type:
1 |
|
Alternatively, you can annotate the type:
1 |
|
error TS7008: Member ‘
name
‘ implicitly has an ‘any’ type.
1 |
|
To fix the problem, you can initialize the class member so that TypeScript can infer the type:
1 |
|
Alternatively, you can annotate the type:
1 |
|