Skip to content

Commit

Permalink
fix: looser slice component type
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Aug 30, 2023
1 parent a701a69 commit 61c87e3
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 @@ -9,6 +9,7 @@ import {
Raw,
VNodeProps,
computed,
defineAsyncComponent,
defineComponent,
h,
markRaw,
Expand Down Expand Up @@ -229,6 +230,8 @@ export type SliceComponentType<
// 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>
// Likewise, for reference with TypeScript files.
| ReturnType<typeof defineAsyncComponent>
| DefineComponent<SliceComponentProps<TSlice, TContext>>
| FunctionalComponent<SliceComponentProps<TSlice, TContext>>;

Expand Down

0 comments on commit 61c87e3

Please sign in to comment.