@docusaurus/module-type-aliases 4.0.0-canary-6967 → 4.0.0-canary-6968
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/index.d.ts +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/module-type-aliases",
|
|
3
|
-
"version": "4.0.0-canary-
|
|
3
|
+
"version": "4.0.0-canary-6968",
|
|
4
4
|
"description": "Docusaurus module type aliases.",
|
|
5
5
|
"types": "./src/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"directory": "packages/docusaurus-module-type-aliases"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
15
|
+
"@docusaurus/types": "4.0.0-canary-6968",
|
|
16
16
|
"@types/history": "^4.7.11",
|
|
17
17
|
"@types/react": "19.3.0",
|
|
18
18
|
"@types/react-dom": "^19.3.0",
|
package/src/index.d.ts
CHANGED
|
@@ -263,10 +263,15 @@ declare module '@docusaurus/router' {
|
|
|
263
263
|
export {useHistory, useLocation, Redirect, matchPath} from 'react-router-dom';
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
+
// TODO Docusaurus v5: remove this deprecated hook
|
|
266
267
|
declare module '@docusaurus/useIsomorphicLayoutEffect' {
|
|
267
|
-
import {useLayoutEffect} from 'react';
|
|
268
|
+
import type {useLayoutEffect} from 'react';
|
|
268
269
|
|
|
269
|
-
|
|
270
|
+
/**
|
|
271
|
+
* @deprecated Use React's `useLayoutEffect` instead.
|
|
272
|
+
*/
|
|
273
|
+
const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
|
274
|
+
export default useIsomorphicLayoutEffect;
|
|
270
275
|
}
|
|
271
276
|
|
|
272
277
|
declare module '@docusaurus/useDocusaurusContext' {
|