Skip to content

Commit

Permalink
fix: allow looser SliceComponentType for TypeScript reference
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Apr 12, 2023
1 parent 18391d7 commit 0f96b7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/SliceZone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ export type SliceComponentType<
TSlice extends SliceLike = any,
TContext = unknown,
> =
// For reference within TypeScript files when `*.vue` type cannot be inferred
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
| DefineComponent<{}, {}, any>
| DefineComponent<SliceComponentProps<TSlice, TContext>>
| FunctionalComponent<SliceComponentProps<TSlice, TContext>>;

Expand Down

0 comments on commit 0f96b7a

Please sign in to comment.