Skip to content

Commit

Permalink
perf: use VNode instead of JSX.Element
Browse files Browse the repository at this point in the history
  • Loading branch information
chizukicn committed Feb 22, 2024
1 parent c575b4a commit 6112fac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/shared/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import type {
EmitsOptions,
ExtractDefaultPropTypes,
ExtractPropTypes,
SetupContext
SetupContext,
VNode
} from "vue";
export interface HookComponentOptions<
R,
Expand Down Expand Up @@ -50,4 +51,4 @@ export type ActivateEvent =
| "touchstart"
| "touchend";

export type ElementLike = JSX.Element | string | ElementLike[];
export type ElementLike = VNode | string | ElementLike[];

0 comments on commit 6112fac

Please sign in to comment.