Skip to content

Commit 635a59b

Browse files
authored
fix(types): support generic argument in setup context expose method (#8507)
1 parent b310ec3 commit 635a59b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export type SetupContext<
234234
attrs: Data
235235
slots: UnwrapSlotsType<S>
236236
emit: EmitFn<E>
237-
expose: (exposed?: Record<string, any>) => void
237+
expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) => void
238238
}
239239
: never
240240

0 commit comments

Comments
 (0)