Commit b062715
fix(types): make templateParams extensible via module augmentation (#679)
* fix(types): make templateParams extensible via module augmentation
Add `templateParams` to `SchemaAugmentations` and intersect it into
`ResolvableTemplateParams`, allowing users to extend templateParams
via `declare module 'unhead/types' { interface SchemaAugmentations { templateParams: { foo: string } } }`.
Also updates `ReactiveHead.templateParams` in the Vue package to use
the shared `ResolvableTemplateParams` type.
Closes #575
* fix(types): make templateParams extensible via module augmentation (#684)
* Initial plan
* fix(types): use dedicated TemplateParamsAugmentations interface to avoid TS2717
Co-authored-by: harlan-zw <[email protected]>
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: harlan-zw <[email protected]>
---------
Co-authored-by: Copilot <[email protected]>
Co-authored-by: harlan-zw <[email protected]>1 parent beeb5f1 commit b062715
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
150 | | - | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 89 | + | |
92 | 90 | | |
93 | 91 | | |
94 | 92 | | |
| |||
0 commit comments