@docusaurus/module-type-aliases 0.0.0-4521 → 0.0.0-4526
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/index.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/module-type-aliases",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4526",
|
|
4
4
|
"description": "Docusaurus module type aliases.",
|
|
5
5
|
"types": "./src/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"directory": "packages/docusaurus-module-type-aliases"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@docusaurus/types": "0.0.0-
|
|
15
|
+
"@docusaurus/types": "0.0.0-4526",
|
|
16
16
|
"@types/react": "*",
|
|
17
17
|
"@types/react-helmet": "*",
|
|
18
18
|
"@types/react-router-config": "*",
|
|
19
19
|
"@types/react-router-dom": "*"
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "3086e9e823783e306698097d959007f44de275b1"
|
|
23
23
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -179,13 +179,13 @@ declare module '@docusaurus/Interpolate' {
|
|
|
179
179
|
Value extends ReactNode,
|
|
180
180
|
> = Record<ExtractInterpolatePlaceholders<Str>, Value>;
|
|
181
181
|
|
|
182
|
-
//
|
|
182
|
+
// If all the values are plain strings, interpolate returns a simple string
|
|
183
183
|
export function interpolate<Str extends string>(
|
|
184
184
|
text: Str,
|
|
185
185
|
values?: InterpolateValues<Str, string | number>,
|
|
186
186
|
): string;
|
|
187
187
|
|
|
188
|
-
// If values contain any ReactNode,
|
|
188
|
+
// If values contain any ReactNode, the return is a ReactNode
|
|
189
189
|
export function interpolate<Str extends string, Value extends ReactNode>(
|
|
190
190
|
text: Str,
|
|
191
191
|
values?: InterpolateValues<Str, Value>,
|