Skip to content

Commit 8aaa9d5

Browse files
committed
more improvements
1 parent 36d79e2 commit 8aaa9d5

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

patches/@[email protected]

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/dist/runtime-core.d.ts b/dist/runtime-core.d.ts
2-
index 5d4c1fb2c6859f7982ea7bb55f65a5c613d91038..539385c2754e1b5882ac6c3bc272372f2b43018c 100644
2+
index 5d4c1fb2c6859f7982ea7bb55f65a5c613d91038..d8c6502f88b63d58dd9844f460c39d519754f396 100644
33
--- a/dist/runtime-core.d.ts
44
+++ b/dist/runtime-core.d.ts
55
@@ -1,7 +1,7 @@
@@ -354,7 +354,7 @@ index 5d4c1fb2c6859f7982ea7bb55f65a5c613d91038..539385c2754e1b5882ac6c3bc272372f
354354
+} ? P : (ExtractComponentProp<T> extends infer P ? P extends Readonly<Array<infer V>> ? [V] extends [string] ? Readonly<{
355355
+ [key in V]?: any;
356356
+}> : {} : P extends ComponentPropsOptions ? ExtractPropTypes<P> : P : {}) & ResolveMixinProps<T>;
357-
+export type RetrieveSlotArgument<T extends any[] = any[]> = (...args: T) => any;
357+
+export type RetrieveSlotArgument<T extends any[] = any[]> = ((...args: T) => any) | undefined;
358358
+/**
359359
+ * Returns runtime type for `slots`
360360
+ */

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/vnodeTransformers/stubComponentsTransformer.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ import {
1717
ComponentPropsOptions,
1818
ComponentObjectPropsOptions,
1919
Component,
20-
AsyncComponentOptions
20+
AsyncComponentOptions,
21+
VNode
2122
} from 'vue'
2223
import { hyphenate } from '../utils/vueShared'
2324
import { matchName } from '../utils/matchName'
@@ -34,7 +35,7 @@ export type CustomCreateStub = (params: {
3435
name: string
3536
component: Component
3637
registerStub: (config: { source: Component; stub: Component }) => void
37-
}) => ConcreteComponent
38+
}) => ConcreteComponent | VNode
3839

3940
interface StubOptions {
4041
name: string

0 commit comments

Comments
 (0)