Skip to content

Commit

Permalink
fix(runtime-core): expose type using generics
Browse files Browse the repository at this point in the history
Makes it consistent with the definition of defineExpose
  • Loading branch information
NoelDeMartin committed Mar 10, 2024
1 parent fef2acb commit fa52619
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/runtime-core/src/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ export type SetupContext<
attrs: Data
slots: UnwrapSlotsType<S>
emit: EmitFn<E>
expose: (exposed?: Record<string, any>) => void
expose: <Exposed extends Record<string, any> = Record<string, any>>(
exposed?: Exposed,
) => void
}
: never

Expand Down

0 comments on commit fa52619

Please sign in to comment.