Skip to content

Commit

Permalink
docs: add explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
ppeeou committed Sep 4, 2023
1 parent e189946 commit f22b956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs_md/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const sum = pipe(
); // typeof 'sum' inferred as the number
```

**Note: It is recommended to enable [strictFunctionTypes](https://www.typescriptlang.org/tsconfig#strictFunctionTypes) tsc option. If not, type inference does not work as we expected. For example, in the example above, `sum` is not inferred as a number type if the option is turned off.**
**Note: It is recommended to enable [strictFunctionTypes](https://www.typescriptlang.org/tsconfig#strictFunctionTypes), [strictNullChecks](https://www.typescriptlang.org/tsconfig#strictNullChecks) tsc option. If not, type inference does not work as we expected. For example, in the example above, `sum` is not inferred as a number type if the option is turned off.**

### JavaScript

Expand Down

0 comments on commit f22b956

Please sign in to comment.