We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eab6741 commit dd6e3efCopy full SHA for dd6e3ef
packages/vuepress/types/plugin.ts
@@ -42,13 +42,20 @@ export type KnownThirdPartyPluginTuple = {
42
[K in KnownThirdPartyPlugins]?: [K | ShortcutName4ThirdPartyPluginName<K>, AllowBoolean<Record<string, any>>?]
43
}[KnownThirdPartyPlugins];
44
45
+/**
46
+ * Final plugin tuple
47
+ */
48
export type PluginTuple =
49
| OfficialPluginName
50
| KnownThirdPartyPlugins
51
+ | ShortcutName4ThirdPartyPluginName<KnownThirdPartyPlugins>
52
| OfficialPluginTuple
53
| ThirdPartyPluginTuple
54
| KnownThirdPartyPluginTuple;
55
56
57
+ * Object config
58
59
export type PluginObject = Partial<PluginConfigMap>
60
& {
61
[T in OfficialPluginName as ShortcutName4OfficialPluginName<T>]?: PluginConfigMap[T]
0 commit comments