Improve Docs: Mention about strictNullChecks
in tsconfig.json
#32
Labels
enhancement
New feature or request
strictNullChecks
in tsconfig.json
#32
🚀 Feature request
This is not really a Feature Request, I spent hours to figure out the issue, but I don't think it is a bug too.
Current Behavior
No where mentioned about the
"strictNullChecks": true
must be set intsconfig.json
in order to let spectacles-ts to work correctly.When I try spectacles-ts on experimental site, it works well: https://codesandbox.io/s/spectacles-ts-experiments-krc1x9?file=/tsconfig.json
But I created my own simple project with
npm init
and copy antsconfig.json
from my existing project, with following index.ts:I use the same code in experimental site, it infer correctly:
const got: (uaddr: DbUserAddress) => DbAddress
I tried to change the version of dependencies but not works
Then I diff my tsconfig, and experimental tsconfig, remove/change this and that config.
After all, when I add strictNullChecks: true, it works like a charm.
Desired Behavior
Short description in the Installation about this.
Suggested Solution
Short description in the Installation about this.
Who does this impact? Who is this for?
Who have configure the
tsconfig.json
withoutstrictNullChecks
or set tofalse
Describe alternatives you've considered
Additional context
Your environment
The text was updated successfully, but these errors were encountered: