TS2713
error TS2713: Cannot access ‘
CheckSuite.status
‘ because ‘CheckSuite
‘ is a type, but not a namespace. Did you mean to retrieve the type of the property ‘status
‘ in ‘CheckSuite
‘ with ‘CheckSuite["status"]
‘?
Broken Code ❌
1 |
|
Fixed Code ✔️
The utility type Pick
comes in handy when you want to select and extract specific properties from one type and apply them to another type:
1 |
|