diff --git a/.changeset/popular-geese-bow.md b/.changeset/popular-geese-bow.md new file mode 100644 index 00000000..1a406e30 --- /dev/null +++ b/.changeset/popular-geese-bow.md @@ -0,0 +1,5 @@ +--- +"@interactors/core": patch +--- + +Fix type checking diff --git a/packages/core/src/inspector.ts b/packages/core/src/inspector.ts index 74ba3052..10e34ee6 100644 --- a/packages/core/src/inspector.ts +++ b/packages/core/src/inspector.ts @@ -31,7 +31,7 @@ export function createInspector>(parentElement ?? unsafeSyncResolveParent(options), options); return elements.map( element => (Object.assign( - instantiateInteractor(options, () => element) as (Interactor, Filters>> & GetActions), { + instantiateInteractor(options, () => element) as unknown as (Interactor, Filters>> & GetActions), { element, find>(constructor: T): Inspector { return createInspector(constructor, element)