There was an error while loading. Please reload this page.
1 parent f73547f commit 34985feCopy full SHA for 34985fe
packages/runtime-core/src/apiSetupHelpers.ts
@@ -118,7 +118,7 @@ export function defineEmits() {
118
* This is only usable inside `<script setup>`, is compiled away in the
119
* output and should **not** be actually called at runtime.
120
*/
121
-export function defineExpose(exposed?: Record<string, any>) {
+export function defineExpose<Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) {
122
if (__DEV__) {
123
warnRuntimeUsage(`defineExpose`)
124
}
0 commit comments