TypeScript · Type Checking
strictFunctionTypes
When assigning functions, check to ensure parameters and the return values are subtype-compatible.
Syntax
"strictFunctionTypes": trueExample
Example
{
"compilerOptions": {
"strictFunctionTypes": true
}
}More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.