Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 08f99cc

Browse files
authored
Merge pull request #482 from charleshypk/master
Fix typo.
2 parents 4caa2d4 + 2228c9b commit 08f99cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/Interfaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ mySearch = function(src: string, sub: string): boolean {
246246
```
247247

248248
Function parameters are checked one at a time, with the type in each corresponding parameter position checked against each other.
249-
If you do not want to specify types at all, Typescript's contextual typing can infer the argument types since the function value is assigned directly to a variable of type `SearchFunc`.
249+
If you do not want to specify types at all, TypeScript's contextual typing can infer the argument types since the function value is assigned directly to a variable of type `SearchFunc`.
250250
Here, also, the return type of our function expression is implied by the values it returns (here `false` and `true`).
251251
Had the function expression returned numbers or strings, the type-checker would have warned us that return type doesn't match the return type described in the `SearchFunc` interface.
252252

0 commit comments

Comments
 (0)