@docusaurus/module-type-aliases 0.0.0-4151 → 0.0.0-4160

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/index.d.ts +19 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/module-type-aliases",
3
- "version": "0.0.0-4151",
3
+ "version": "0.0.0-4160",
4
4
  "description": "Docusaurus module type aliases.",
5
5
  "types": "./src/index.d.ts",
6
6
  "publishConfig": {
@@ -18,5 +18,5 @@
18
18
  "@types/react-router-dom": "*"
19
19
  },
20
20
  "license": "MIT",
21
- "gitHead": "77e558648976442ceaeb55bb6e3585fbe79db91d"
21
+ "gitHead": "e1b8d50a0e6e4f29b1455d7875a28a11ea5fb577"
22
22
  }
package/src/index.d.ts CHANGED
@@ -74,6 +74,14 @@ declare module '@generated/codeTranslations' {
74
74
 
75
75
  declare module '@theme-original/*';
76
76
 
77
+ declare module '@theme/Error' {
78
+ export interface Props {
79
+ readonly error: Error;
80
+ readonly tryAgain: () => void;
81
+ }
82
+ export default function Error(props: Props): JSX.Element;
83
+ }
84
+
77
85
  declare module '@theme/Layout' {
78
86
  import type {ReactNode} from 'react';
79
87
 
@@ -108,6 +116,17 @@ declare module '@docusaurus/constants' {
108
116
  export const DEFAULT_PLUGIN_ID: 'default';
109
117
  }
110
118
 
119
+ declare module '@docusaurus/ErrorBoundary' {
120
+ import type {ReactNode} from 'react';
121
+ import ErrorComponent from '@theme/Error';
122
+
123
+ export interface Props {
124
+ readonly fallback?: typeof ErrorComponent;
125
+ readonly children: ReactNode;
126
+ }
127
+ export default function ErrorBoundary(props: Props): JSX.Element;
128
+ }
129
+
111
130
  declare module '@docusaurus/Head' {
112
131
  import type {HelmetProps} from 'react-helmet';
113
132
  import type {ReactNode} from 'react';