Skip to content

Commit

Permalink
Fix 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 9, 2024
1 parent fef2acb commit 46731ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ 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 46731ea

Please sign in to comment.