@docusaurus/types 3.1.0 → 3.1.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/routing.d.ts +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/types",
3
- "version": "3.1.0",
3
+ "version": "3.1.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",
28
28
  "react-dom": "^18.0.0"
29
29
  },
30
- "gitHead": "a5e675821f0e8b70b591fcebf19fd60a70d55548"
30
+ "gitHead": "8017f6a6776ba1bd7065e630a52fe2c2654e2f1b"
31
31
  }
package/src/routing.d.ts CHANGED
@@ -60,6 +60,11 @@ export type RouteConfig = {
60
60
  routes?: RouteConfig[];
61
61
  /** React router config option: `exact` routes would not match subroutes. */
62
62
  exact?: boolean;
63
+ /**
64
+ * React router config option: `strict` routes are sensitive to the presence
65
+ * of a trailing slash.
66
+ */
67
+ strict?: boolean;
63
68
  /** Used to sort routes. Higher-priority routes will be placed first. */
64
69
  priority?: number;
65
70
  /** Extra props; will be copied to routes.js. */