@docusaurus/types 3.8.0 → 3.8.1
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 +2 -2
- package/src/config.d.ts +2 -2
- package/src/routing.d.ts +9 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/types",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"description": "Common types for Docusaurus packages.",
|
|
5
5
|
"types": "./src/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"react": "^18.0.0 || ^19.0.0",
|
|
28
28
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "fa8ae13e668fcbc0481ce10c0a734e2a5b397293"
|
|
31
31
|
}
|
package/src/config.d.ts
CHANGED
|
@@ -463,8 +463,8 @@ export type Config = Overwrite<
|
|
|
463
463
|
future?: Overwrite<
|
|
464
464
|
DeepPartial<FutureConfig>,
|
|
465
465
|
{
|
|
466
|
-
v4?: boolean | FutureV4Config
|
|
467
|
-
experimental_faster?: boolean | FasterConfig
|
|
466
|
+
v4?: boolean | Partial<FutureV4Config>;
|
|
467
|
+
experimental_faster?: boolean | Partial<FasterConfig>;
|
|
468
468
|
}
|
|
469
469
|
>;
|
|
470
470
|
}
|
package/src/routing.d.ts
CHANGED
|
@@ -56,12 +56,19 @@ export type RouteMetadata = {
|
|
|
56
56
|
/**
|
|
57
57
|
* The last updated date of this route
|
|
58
58
|
* This is generally read from the Git history of the sourceFilePath
|
|
59
|
-
* but can also be provided through other means (usually front matter)
|
|
59
|
+
* but can also be provided through other means (usually front matter).
|
|
60
60
|
*
|
|
61
61
|
* This has notably been introduced for adding "lastmod" support to the
|
|
62
62
|
* sitemap plugin, see https://github.com/facebook/docusaurus/pull/9954
|
|
63
|
+
*
|
|
64
|
+
* `undefined` means we haven't tried to compute the value for this route.
|
|
65
|
+
* This is usually the case for routes created by third-party plugins that do
|
|
66
|
+
* not need this metadata.
|
|
67
|
+
*
|
|
68
|
+
* `null` means we already tried to compute a lastUpdatedAt, but we know for
|
|
69
|
+
* sure there isn't any. This usually happens for untracked Git files.
|
|
63
70
|
*/
|
|
64
|
-
lastUpdatedAt?: number;
|
|
71
|
+
lastUpdatedAt?: number | null;
|
|
65
72
|
};
|
|
66
73
|
|
|
67
74
|
/**
|