Commit 1ecece2b authored by nanahira's avatar nanahira

fix infer type

parent 5862ea5d
...@@ -54,7 +54,7 @@ export namespace PluginRegistrar { ...@@ -54,7 +54,7 @@ export namespace PluginRegistrar {
export type ClassPluginConfig< export type ClassPluginConfig<
Ctx extends Context, Ctx extends Context,
P extends PluginClass<Ctx>, P extends PluginClass<Ctx>,
> = P extends PluginClass<infer C> ? C : never; > = P extends PluginClass<Ctx, infer C> ? C : never;
export type ExactClassPluginConfig< export type ExactClassPluginConfig<
Ctx extends Context, Ctx extends Context,
...@@ -78,7 +78,7 @@ export namespace PluginRegistrar { ...@@ -78,7 +78,7 @@ export namespace PluginRegistrar {
}; };
} }
export function PluginDef<Ctx extends Context>( export function PluginDef(
name: string, name: string,
options?: any, options?: any,
): PluginRegistrar.PluginDefinitionName; ): PluginRegistrar.PluginDefinitionName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment