diff --git a/packages/owl-core/src/plugin_hooks.ts b/packages/owl-core/src/plugin_hooks.ts index 6d3b22a66..40bab4fe5 100644 --- a/packages/owl-core/src/plugin_hooks.ts +++ b/packages/owl-core/src/plugin_hooks.ts @@ -1,14 +1,10 @@ import { OwlError } from "./owl_error"; import { PluginConstructor, PluginManager } from "./plugin_manager"; -import { Scope, useScope } from "./scope"; +import { useScope } from "./scope"; import { getDefault, types, type Optional, type StripBrands, type WithDefault } from "./types"; import { assertType } from "./validation"; -export type PluginInstance = T extends { - scoped: (plugin: any, scope: Scope) => infer R; -} - ? R - : Omit, "setup">; +export type PluginInstance = Omit, "setup">; export function usePlugin(pluginType: T): PluginInstance { const scope = useScope();