Commit bbc33f1
authored
docs: add explicit import to TypeScript augmentation example (#14957)
* docs: add explicit import to TypeScript augmentation example
In the "Quick Start (Data Mode)" section, the TypeScript module augmentation example for Future can cause errors if the user's .d.ts file is treated as a global script rather than a module.
Without a top-level import or export, TypeScript interprets declare module "react-router" as a full ambient declaration, which shadows/overwrites the actual library types instead of augmenting them. Adding import "react-router"; ensures the file is treated as a module and triggers Module Augmentation correctly.
* Add NandkishorJadoun to contributors list1 parent 0824a52 commit bbc33f1
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| 489 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| |||
0 commit comments