Skip to content

Commit

Permalink
fix(types): support generic argument in setup context expose method (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
NoelDeMartin committed Jun 5, 2024
1 parent b310ec3 commit 635a59b
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 @@ -234,7 +234,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 635a59b

Please sign in to comment.