@docusaurus/types 0.0.0-5869 → 0.0.0-5878
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/context.d.ts +1 -0
- package/src/plugin.d.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/types",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-5878",
|
|
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": "
|
|
30
|
+
"gitHead": "d12884c09795e4d0a536df1840d86a0bcbcd9a99"
|
|
31
31
|
}
|
package/src/context.d.ts
CHANGED
package/src/plugin.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type {TranslationFile} from './i18n';
|
|
8
|
+
import type {CodeTranslations, TranslationFile} from './i18n';
|
|
9
9
|
import type {RuleSetRule, Configuration as WebpackConfiguration} from 'webpack';
|
|
10
10
|
import type {CustomizeRuleString} from 'webpack-merge/dist/types';
|
|
11
11
|
import type {CommanderStatic} from 'commander';
|
|
@@ -183,6 +183,9 @@ export type InitializedPlugin = Plugin & {
|
|
|
183
183
|
|
|
184
184
|
export type LoadedPlugin = InitializedPlugin & {
|
|
185
185
|
readonly content: unknown;
|
|
186
|
+
readonly globalData: unknown;
|
|
187
|
+
readonly routes: RouteConfig[];
|
|
188
|
+
readonly defaultCodeTranslations: CodeTranslations;
|
|
186
189
|
};
|
|
187
190
|
|
|
188
191
|
export type PluginModule<Content = unknown> = {
|