docs: clarify strictNullChecks required for MergeDeep usage (#22012)

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
This commit is contained in:
Jacob Bowdoin
2024-03-19 16:12:50 +08:00
committed by GitHub
parent 684c478901
commit 69cf45d72e

View File

@@ -125,6 +125,12 @@ export type Database = MergeDeep<
>
```
<Admonition type="note">
To use `MergeDeep`, set `compilerOptions.strictNullChecks` to `true` in your `tsconfig.json`.
</Admonition>
You can also override the type of an individual successful response if needed:
```ts