@docusaurus/types 0.0.0-5857 → 0.0.0-5860

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/plugin.d.ts +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/types",
3
- "version": "0.0.0-5857",
3
+ "version": "0.0.0-5860",
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": "d239a09abb8c6ea81bb7b5382a594ecf96c4a164"
30
+ "gitHead": "dc91f3f6c8cf54d51409a24d823db17eee03a01a"
31
31
  }
package/src/plugin.d.ts CHANGED
@@ -163,6 +163,15 @@ export type Plugin<Content = unknown> = {
163
163
  }) => ThemeConfig;
164
164
  };
165
165
 
166
+ /**
167
+ * Data required to uniquely identify a plugin
168
+ * The name or instance id alone is not enough
169
+ */
170
+ export type PluginIdentifier = {
171
+ readonly name: string;
172
+ readonly id: string;
173
+ };
174
+
166
175
  export type InitializedPlugin = Plugin & {
167
176
  readonly options: Required<PluginOptions>;
168
177
  readonly version: PluginVersionInformation;