vize 0.620.0 → 0.622.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/virtual-ts-slots.d.ts +106 -0
- package/virtual-ts.d.cts +15 -73
- package/virtual-ts.d.mts +15 -73
- package/virtual-ts.d.ts +15 -73
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.622.0",
|
|
4
4
|
"description": "Vize - High-performance Vue.js toolchain in Rust",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"generated/content-mapper-types.d.ts",
|
|
34
34
|
"virtual-ts-globals.d.ts",
|
|
35
35
|
"virtual-ts-patterns.d.ts",
|
|
36
|
+
"virtual-ts-slots.d.ts",
|
|
36
37
|
"virtual-ts.d.ts",
|
|
37
38
|
"virtual-ts.d.mts",
|
|
38
39
|
"virtual-ts.d.cts",
|
|
@@ -80,7 +81,7 @@
|
|
|
80
81
|
"access": "public"
|
|
81
82
|
},
|
|
82
83
|
"dependencies": {
|
|
83
|
-
"@vizejs/native": "0.
|
|
84
|
+
"@vizejs/native": "0.622.0",
|
|
84
85
|
"oxc-transform": "0.144.0"
|
|
85
86
|
},
|
|
86
87
|
"devDependencies": {
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// Generated from the canonical slot-constructor family. Do not edit.
|
|
2
|
+
import type { $IsAny } from "./generated/content-mapper-types.js" with {
|
|
3
|
+
"resolution-mode": "import",
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export type $SlotHostSlots<C> = C extends { readonly __vizeSlots?: infer __S }
|
|
7
|
+
? NonNullable<__S>
|
|
8
|
+
: C extends { new (): { $slots: infer __S } }
|
|
9
|
+
? __S
|
|
10
|
+
: C extends (props: any, context: infer __Ctx, ...args: any[]) => any
|
|
11
|
+
? NonNullable<__Ctx> extends { slots: infer __S }
|
|
12
|
+
? __S
|
|
13
|
+
: any
|
|
14
|
+
: unknown;
|
|
15
|
+
declare function __vizeFunctionalSlots<P, C, R>(
|
|
16
|
+
component: (props: P, context: C, ...args: any[]) => R,
|
|
17
|
+
): (
|
|
18
|
+
props: P,
|
|
19
|
+
) => "__ctx" extends keyof R
|
|
20
|
+
? NonNullable<R["__ctx"]> extends { slots: infer S }
|
|
21
|
+
? S
|
|
22
|
+
: any
|
|
23
|
+
: NonNullable<C> extends { slots: infer S }
|
|
24
|
+
? S
|
|
25
|
+
: any;
|
|
26
|
+
type $NativeSlotsFactory<C> = [C] extends [new (...args: any[]) => any]
|
|
27
|
+
? (component: C) => (props: any) => $SlotHostSlots<C>
|
|
28
|
+
: C extends (...args: any[]) => any
|
|
29
|
+
? typeof __vizeFunctionalSlots
|
|
30
|
+
: (component: C) => (props: any) => $SlotHostSlots<C>;
|
|
31
|
+
export type $SlotsFactory<C> =
|
|
32
|
+
$IsAny<C> extends true
|
|
33
|
+
? (component: C) => (props: any) => any
|
|
34
|
+
: [C] extends [{ __vizeResolveSlots?: infer F }]
|
|
35
|
+
? F extends (...args: any[]) => any
|
|
36
|
+
? (component: C) => F
|
|
37
|
+
: $NativeSlotsFactory<C>
|
|
38
|
+
: [C] extends [{ readonly __vizeComponentMarker: true }]
|
|
39
|
+
? (component: C) => (props: any) => $SlotHostSlots<C>
|
|
40
|
+
: $NativeSlotsFactory<C>;
|
|
41
|
+
type $HasSlotResolver<C> = C extends { __vizeResolveSlots?: infer F }
|
|
42
|
+
? F extends (...args: any[]) => any
|
|
43
|
+
? true
|
|
44
|
+
: false
|
|
45
|
+
: false;
|
|
46
|
+
type $DirectSlotConstructor<C> =
|
|
47
|
+
$IsAny<C> extends true
|
|
48
|
+
? never
|
|
49
|
+
: $HasSlotResolver<C> extends true
|
|
50
|
+
? never
|
|
51
|
+
: C extends { readonly __vizeComponentMarker: true }
|
|
52
|
+
? never
|
|
53
|
+
: C extends new (...args: any[]) => { $slots: any }
|
|
54
|
+
? C
|
|
55
|
+
: never;
|
|
56
|
+
export type $SlotConstructor<C> = [$DirectSlotConstructor<C>] extends [never]
|
|
57
|
+
? new (props: any, ...args: any[]) => { $slots: never }
|
|
58
|
+
: $DirectSlotConstructor<C>;
|
|
59
|
+
type $SlotConstructorArgumentLists<C> = C extends {
|
|
60
|
+
new (...args: infer A1): any;
|
|
61
|
+
new (...args: infer A2): any;
|
|
62
|
+
new (...args: infer A3): any;
|
|
63
|
+
new (...args: infer A4): any;
|
|
64
|
+
new (...args: infer A5): any;
|
|
65
|
+
new (...args: infer A6): any;
|
|
66
|
+
new (...args: infer A7): any;
|
|
67
|
+
new (...args: infer A8): any;
|
|
68
|
+
}
|
|
69
|
+
? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8
|
|
70
|
+
: C extends new (...args: infer A) => any
|
|
71
|
+
? A
|
|
72
|
+
: [unknown];
|
|
73
|
+
type $SlotConstructorHasArguments<C> =
|
|
74
|
+
$SlotConstructorArgumentLists<C> extends infer A ? (A extends [] ? never : true) : never;
|
|
75
|
+
export type $SlotConstructorWithoutArguments<C> = C extends new () => any
|
|
76
|
+
? C & ([$SlotConstructorHasArguments<C>] extends [never] ? unknown : new () => { $slots: never })
|
|
77
|
+
: new () => { $slots: never };
|
|
78
|
+
export type $SlotConstructorWithArguments<C> = [$SlotConstructorHasArguments<C>] extends [never]
|
|
79
|
+
? new (props: any, ...args: any[]) => { $slots: never }
|
|
80
|
+
: C;
|
|
81
|
+
export type $SlotConstructorArgs<C> = C extends new (props: any, ...args: infer A) => any
|
|
82
|
+
? { [K in keyof A]: any }
|
|
83
|
+
: [];
|
|
84
|
+
type $SlotContractIsUsable<S> =
|
|
85
|
+
$IsAny<S> extends true ? false : unknown extends S ? false : [S] extends [never] ? false : true;
|
|
86
|
+
type $SlotContractHasKeys<S> = [keyof S] extends [never] ? false : true;
|
|
87
|
+
type $SlotConstructorFallback<C, Z, P> =
|
|
88
|
+
$SlotContractIsUsable<$SlotHostSlots<C>> extends true
|
|
89
|
+
? { $slots: $SlotHostSlots<C> }
|
|
90
|
+
: Z extends unknown
|
|
91
|
+
? P extends unknown
|
|
92
|
+
? { $slots: any }
|
|
93
|
+
: never
|
|
94
|
+
: never;
|
|
95
|
+
export type $SlotConstructorInstance<C, Z, P> = [$SlotConstructorHasArguments<C>] extends [never]
|
|
96
|
+
? Z
|
|
97
|
+
: P extends { $slots: infer S }
|
|
98
|
+
? $SlotContractIsUsable<S> extends true
|
|
99
|
+
? $SlotContractHasKeys<S> extends true
|
|
100
|
+
? P
|
|
101
|
+
: $SlotConstructorFallback<C, Z, P>
|
|
102
|
+
: $SlotConstructorFallback<C, Z, P>
|
|
103
|
+
: $SlotConstructorFallback<C, Z, P>;
|
|
104
|
+
export type $SlotHostSelector<C> = [$DirectSlotConstructor<C>] extends [never]
|
|
105
|
+
? <S>(instance: unknown, slots: S) => S
|
|
106
|
+
: <I extends { $slots: any }>(instance: I, slots: unknown) => I["$slots"];
|
package/virtual-ts.d.cts
CHANGED
|
@@ -25,15 +25,8 @@ export type $WidenTemplateRef<T> =
|
|
|
25
25
|
: T
|
|
26
26
|
: T;
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
: C extends { new (): { $slots: infer __S } }
|
|
31
|
-
? __S
|
|
32
|
-
: C extends (props: any, context: infer __Ctx, ...args: any[]) => any
|
|
33
|
-
? NonNullable<__Ctx> extends { slots: infer __S }
|
|
34
|
-
? __S
|
|
35
|
-
: any
|
|
36
|
-
: unknown;
|
|
28
|
+
import type * as __vizeSlotTypes from "./virtual-ts-slots.js" with { "resolution-mode": "import" };
|
|
29
|
+
export type $SlotHostSlots<C> = __vizeSlotTypes.$SlotHostSlots<C>;
|
|
37
30
|
declare function __vizeFunctionalSlots<P, C, R>(
|
|
38
31
|
component: (props: P, context: C, ...args: any[]) => R,
|
|
39
32
|
): (
|
|
@@ -45,70 +38,19 @@ declare function __vizeFunctionalSlots<P, C, R>(
|
|
|
45
38
|
: NonNullable<C> extends { slots: infer S }
|
|
46
39
|
? S
|
|
47
40
|
: any;
|
|
48
|
-
type $NativeSlotsFactory<C> =
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
? (component: C) => (props: any) => $SlotHostSlots<C>
|
|
62
|
-
: $NativeSlotsFactory<C>;
|
|
63
|
-
type $HasSlotResolver<C> = C extends { __vizeResolveSlots?: infer F }
|
|
64
|
-
? F extends (...args: any[]) => any
|
|
65
|
-
? true
|
|
66
|
-
: false
|
|
67
|
-
: false;
|
|
68
|
-
type $DirectSlotConstructor<C> =
|
|
69
|
-
$IsAny<C> extends true
|
|
70
|
-
? never
|
|
71
|
-
: $HasSlotResolver<C> extends true
|
|
72
|
-
? never
|
|
73
|
-
: C extends { readonly __vizeComponentMarker: true }
|
|
74
|
-
? never
|
|
75
|
-
: C extends new (...args: any[]) => { $slots: any }
|
|
76
|
-
? C
|
|
77
|
-
: never;
|
|
78
|
-
export type $SlotConstructor<C> = [$DirectSlotConstructor<C>] extends [never]
|
|
79
|
-
? new (props: any, ...args: any[]) => { $slots: never }
|
|
80
|
-
: $DirectSlotConstructor<C>;
|
|
81
|
-
type $SlotConstructorArgumentLists<C> = C extends {
|
|
82
|
-
new (...args: infer A1): any;
|
|
83
|
-
new (...args: infer A2): any;
|
|
84
|
-
new (...args: infer A3): any;
|
|
85
|
-
new (...args: infer A4): any;
|
|
86
|
-
new (...args: infer A5): any;
|
|
87
|
-
new (...args: infer A6): any;
|
|
88
|
-
new (...args: infer A7): any;
|
|
89
|
-
new (...args: infer A8): any;
|
|
90
|
-
}
|
|
91
|
-
? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8
|
|
92
|
-
: C extends new (...args: infer A) => any
|
|
93
|
-
? A
|
|
94
|
-
: [unknown];
|
|
95
|
-
type $SlotConstructorHasArguments<C> =
|
|
96
|
-
$SlotConstructorArgumentLists<C> extends infer A ? (A extends [] ? never : true) : never;
|
|
97
|
-
export type $SlotConstructorWithoutArguments<C> = C extends new () => any
|
|
98
|
-
? C & ([$SlotConstructorHasArguments<C>] extends [never] ? unknown : new () => { $slots: never })
|
|
99
|
-
: new () => { $slots: never };
|
|
100
|
-
export type $SlotConstructorWithArguments<C> = [$SlotConstructorHasArguments<C>] extends [never]
|
|
101
|
-
? new (props: any, ...args: any[]) => { $slots: never }
|
|
102
|
-
: C;
|
|
103
|
-
export type $SlotConstructorArgs<C> = C extends new (props: any, ...args: infer A) => any
|
|
104
|
-
? { [K in keyof A]: any }
|
|
105
|
-
: [];
|
|
106
|
-
export type $SlotConstructorInstance<C, Z, P> = [$SlotConstructorHasArguments<C>] extends [never]
|
|
107
|
-
? Z
|
|
108
|
-
: P;
|
|
109
|
-
export type $SlotHostSelector<C> = [$DirectSlotConstructor<C>] extends [never]
|
|
110
|
-
? <S>(instance: unknown, slots: S) => S
|
|
111
|
-
: <I extends { $slots: any }>(instance: I, slots: unknown) => I["$slots"];
|
|
41
|
+
type $NativeSlotsFactory<C> = __vizeSlotTypes.$NativeSlotsFactory<C>;
|
|
42
|
+
export type $SlotsFactory<C> = __vizeSlotTypes.$SlotsFactory<C>;
|
|
43
|
+
type $HasSlotResolver<C> = __vizeSlotTypes.$HasSlotResolver<C>;
|
|
44
|
+
type $DirectSlotConstructor<C> = __vizeSlotTypes.$DirectSlotConstructor<C>;
|
|
45
|
+
export type $SlotConstructor<C> = __vizeSlotTypes.$SlotConstructor<C>;
|
|
46
|
+
type $SlotConstructorArgumentLists<C> = __vizeSlotTypes.$SlotConstructorArgumentLists<C>;
|
|
47
|
+
type $SlotConstructorHasArguments<C> = __vizeSlotTypes.$SlotConstructorHasArguments<C>;
|
|
48
|
+
export type $SlotConstructorWithoutArguments<C> =
|
|
49
|
+
__vizeSlotTypes.$SlotConstructorWithoutArguments<C>;
|
|
50
|
+
export type $SlotConstructorWithArguments<C> = __vizeSlotTypes.$SlotConstructorWithArguments<C>;
|
|
51
|
+
export type $SlotConstructorArgs<C> = __vizeSlotTypes.$SlotConstructorArgs<C>;
|
|
52
|
+
export type $SlotConstructorInstance<C, Z, P> = __vizeSlotTypes.$SlotConstructorInstance<C, Z, P>;
|
|
53
|
+
export type $SlotHostSelector<C> = __vizeSlotTypes.$SlotHostSelector<C>;
|
|
112
54
|
|
|
113
55
|
// @ts-ignore A missing provider keeps its framework error-any fallback.
|
|
114
56
|
type $SilentAny = {}["__vizeSilentAny"];
|
package/virtual-ts.d.mts
CHANGED
|
@@ -25,15 +25,8 @@ export type $WidenTemplateRef<T> =
|
|
|
25
25
|
: T
|
|
26
26
|
: T;
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
: C extends { new (): { $slots: infer __S } }
|
|
31
|
-
? __S
|
|
32
|
-
: C extends (props: any, context: infer __Ctx, ...args: any[]) => any
|
|
33
|
-
? NonNullable<__Ctx> extends { slots: infer __S }
|
|
34
|
-
? __S
|
|
35
|
-
: any
|
|
36
|
-
: unknown;
|
|
28
|
+
import type * as __vizeSlotTypes from "./virtual-ts-slots.js" with { "resolution-mode": "import" };
|
|
29
|
+
export type $SlotHostSlots<C> = __vizeSlotTypes.$SlotHostSlots<C>;
|
|
37
30
|
declare function __vizeFunctionalSlots<P, C, R>(
|
|
38
31
|
component: (props: P, context: C, ...args: any[]) => R,
|
|
39
32
|
): (
|
|
@@ -45,70 +38,19 @@ declare function __vizeFunctionalSlots<P, C, R>(
|
|
|
45
38
|
: NonNullable<C> extends { slots: infer S }
|
|
46
39
|
? S
|
|
47
40
|
: any;
|
|
48
|
-
type $NativeSlotsFactory<C> =
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
? (component: C) => (props: any) => $SlotHostSlots<C>
|
|
62
|
-
: $NativeSlotsFactory<C>;
|
|
63
|
-
type $HasSlotResolver<C> = C extends { __vizeResolveSlots?: infer F }
|
|
64
|
-
? F extends (...args: any[]) => any
|
|
65
|
-
? true
|
|
66
|
-
: false
|
|
67
|
-
: false;
|
|
68
|
-
type $DirectSlotConstructor<C> =
|
|
69
|
-
$IsAny<C> extends true
|
|
70
|
-
? never
|
|
71
|
-
: $HasSlotResolver<C> extends true
|
|
72
|
-
? never
|
|
73
|
-
: C extends { readonly __vizeComponentMarker: true }
|
|
74
|
-
? never
|
|
75
|
-
: C extends new (...args: any[]) => { $slots: any }
|
|
76
|
-
? C
|
|
77
|
-
: never;
|
|
78
|
-
export type $SlotConstructor<C> = [$DirectSlotConstructor<C>] extends [never]
|
|
79
|
-
? new (props: any, ...args: any[]) => { $slots: never }
|
|
80
|
-
: $DirectSlotConstructor<C>;
|
|
81
|
-
type $SlotConstructorArgumentLists<C> = C extends {
|
|
82
|
-
new (...args: infer A1): any;
|
|
83
|
-
new (...args: infer A2): any;
|
|
84
|
-
new (...args: infer A3): any;
|
|
85
|
-
new (...args: infer A4): any;
|
|
86
|
-
new (...args: infer A5): any;
|
|
87
|
-
new (...args: infer A6): any;
|
|
88
|
-
new (...args: infer A7): any;
|
|
89
|
-
new (...args: infer A8): any;
|
|
90
|
-
}
|
|
91
|
-
? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8
|
|
92
|
-
: C extends new (...args: infer A) => any
|
|
93
|
-
? A
|
|
94
|
-
: [unknown];
|
|
95
|
-
type $SlotConstructorHasArguments<C> =
|
|
96
|
-
$SlotConstructorArgumentLists<C> extends infer A ? (A extends [] ? never : true) : never;
|
|
97
|
-
export type $SlotConstructorWithoutArguments<C> = C extends new () => any
|
|
98
|
-
? C & ([$SlotConstructorHasArguments<C>] extends [never] ? unknown : new () => { $slots: never })
|
|
99
|
-
: new () => { $slots: never };
|
|
100
|
-
export type $SlotConstructorWithArguments<C> = [$SlotConstructorHasArguments<C>] extends [never]
|
|
101
|
-
? new (props: any, ...args: any[]) => { $slots: never }
|
|
102
|
-
: C;
|
|
103
|
-
export type $SlotConstructorArgs<C> = C extends new (props: any, ...args: infer A) => any
|
|
104
|
-
? { [K in keyof A]: any }
|
|
105
|
-
: [];
|
|
106
|
-
export type $SlotConstructorInstance<C, Z, P> = [$SlotConstructorHasArguments<C>] extends [never]
|
|
107
|
-
? Z
|
|
108
|
-
: P;
|
|
109
|
-
export type $SlotHostSelector<C> = [$DirectSlotConstructor<C>] extends [never]
|
|
110
|
-
? <S>(instance: unknown, slots: S) => S
|
|
111
|
-
: <I extends { $slots: any }>(instance: I, slots: unknown) => I["$slots"];
|
|
41
|
+
type $NativeSlotsFactory<C> = __vizeSlotTypes.$NativeSlotsFactory<C>;
|
|
42
|
+
export type $SlotsFactory<C> = __vizeSlotTypes.$SlotsFactory<C>;
|
|
43
|
+
type $HasSlotResolver<C> = __vizeSlotTypes.$HasSlotResolver<C>;
|
|
44
|
+
type $DirectSlotConstructor<C> = __vizeSlotTypes.$DirectSlotConstructor<C>;
|
|
45
|
+
export type $SlotConstructor<C> = __vizeSlotTypes.$SlotConstructor<C>;
|
|
46
|
+
type $SlotConstructorArgumentLists<C> = __vizeSlotTypes.$SlotConstructorArgumentLists<C>;
|
|
47
|
+
type $SlotConstructorHasArguments<C> = __vizeSlotTypes.$SlotConstructorHasArguments<C>;
|
|
48
|
+
export type $SlotConstructorWithoutArguments<C> =
|
|
49
|
+
__vizeSlotTypes.$SlotConstructorWithoutArguments<C>;
|
|
50
|
+
export type $SlotConstructorWithArguments<C> = __vizeSlotTypes.$SlotConstructorWithArguments<C>;
|
|
51
|
+
export type $SlotConstructorArgs<C> = __vizeSlotTypes.$SlotConstructorArgs<C>;
|
|
52
|
+
export type $SlotConstructorInstance<C, Z, P> = __vizeSlotTypes.$SlotConstructorInstance<C, Z, P>;
|
|
53
|
+
export type $SlotHostSelector<C> = __vizeSlotTypes.$SlotHostSelector<C>;
|
|
112
54
|
|
|
113
55
|
// @ts-ignore A missing provider keeps its framework error-any fallback.
|
|
114
56
|
type $SilentAny = {}["__vizeSilentAny"];
|
package/virtual-ts.d.ts
CHANGED
|
@@ -25,15 +25,8 @@ export type $WidenTemplateRef<T> =
|
|
|
25
25
|
: T
|
|
26
26
|
: T;
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
: C extends { new (): { $slots: infer __S } }
|
|
31
|
-
? __S
|
|
32
|
-
: C extends (props: any, context: infer __Ctx, ...args: any[]) => any
|
|
33
|
-
? NonNullable<__Ctx> extends { slots: infer __S }
|
|
34
|
-
? __S
|
|
35
|
-
: any
|
|
36
|
-
: unknown;
|
|
28
|
+
import type * as __vizeSlotTypes from "./virtual-ts-slots.js" with { "resolution-mode": "import" };
|
|
29
|
+
export type $SlotHostSlots<C> = __vizeSlotTypes.$SlotHostSlots<C>;
|
|
37
30
|
declare function __vizeFunctionalSlots<P, C, R>(
|
|
38
31
|
component: (props: P, context: C, ...args: any[]) => R,
|
|
39
32
|
): (
|
|
@@ -45,70 +38,19 @@ declare function __vizeFunctionalSlots<P, C, R>(
|
|
|
45
38
|
: NonNullable<C> extends { slots: infer S }
|
|
46
39
|
? S
|
|
47
40
|
: any;
|
|
48
|
-
type $NativeSlotsFactory<C> =
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
? (component: C) => (props: any) => $SlotHostSlots<C>
|
|
62
|
-
: $NativeSlotsFactory<C>;
|
|
63
|
-
type $HasSlotResolver<C> = C extends { __vizeResolveSlots?: infer F }
|
|
64
|
-
? F extends (...args: any[]) => any
|
|
65
|
-
? true
|
|
66
|
-
: false
|
|
67
|
-
: false;
|
|
68
|
-
type $DirectSlotConstructor<C> =
|
|
69
|
-
$IsAny<C> extends true
|
|
70
|
-
? never
|
|
71
|
-
: $HasSlotResolver<C> extends true
|
|
72
|
-
? never
|
|
73
|
-
: C extends { readonly __vizeComponentMarker: true }
|
|
74
|
-
? never
|
|
75
|
-
: C extends new (...args: any[]) => { $slots: any }
|
|
76
|
-
? C
|
|
77
|
-
: never;
|
|
78
|
-
export type $SlotConstructor<C> = [$DirectSlotConstructor<C>] extends [never]
|
|
79
|
-
? new (props: any, ...args: any[]) => { $slots: never }
|
|
80
|
-
: $DirectSlotConstructor<C>;
|
|
81
|
-
type $SlotConstructorArgumentLists<C> = C extends {
|
|
82
|
-
new (...args: infer A1): any;
|
|
83
|
-
new (...args: infer A2): any;
|
|
84
|
-
new (...args: infer A3): any;
|
|
85
|
-
new (...args: infer A4): any;
|
|
86
|
-
new (...args: infer A5): any;
|
|
87
|
-
new (...args: infer A6): any;
|
|
88
|
-
new (...args: infer A7): any;
|
|
89
|
-
new (...args: infer A8): any;
|
|
90
|
-
}
|
|
91
|
-
? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8
|
|
92
|
-
: C extends new (...args: infer A) => any
|
|
93
|
-
? A
|
|
94
|
-
: [unknown];
|
|
95
|
-
type $SlotConstructorHasArguments<C> =
|
|
96
|
-
$SlotConstructorArgumentLists<C> extends infer A ? (A extends [] ? never : true) : never;
|
|
97
|
-
export type $SlotConstructorWithoutArguments<C> = C extends new () => any
|
|
98
|
-
? C & ([$SlotConstructorHasArguments<C>] extends [never] ? unknown : new () => { $slots: never })
|
|
99
|
-
: new () => { $slots: never };
|
|
100
|
-
export type $SlotConstructorWithArguments<C> = [$SlotConstructorHasArguments<C>] extends [never]
|
|
101
|
-
? new (props: any, ...args: any[]) => { $slots: never }
|
|
102
|
-
: C;
|
|
103
|
-
export type $SlotConstructorArgs<C> = C extends new (props: any, ...args: infer A) => any
|
|
104
|
-
? { [K in keyof A]: any }
|
|
105
|
-
: [];
|
|
106
|
-
export type $SlotConstructorInstance<C, Z, P> = [$SlotConstructorHasArguments<C>] extends [never]
|
|
107
|
-
? Z
|
|
108
|
-
: P;
|
|
109
|
-
export type $SlotHostSelector<C> = [$DirectSlotConstructor<C>] extends [never]
|
|
110
|
-
? <S>(instance: unknown, slots: S) => S
|
|
111
|
-
: <I extends { $slots: any }>(instance: I, slots: unknown) => I["$slots"];
|
|
41
|
+
type $NativeSlotsFactory<C> = __vizeSlotTypes.$NativeSlotsFactory<C>;
|
|
42
|
+
export type $SlotsFactory<C> = __vizeSlotTypes.$SlotsFactory<C>;
|
|
43
|
+
type $HasSlotResolver<C> = __vizeSlotTypes.$HasSlotResolver<C>;
|
|
44
|
+
type $DirectSlotConstructor<C> = __vizeSlotTypes.$DirectSlotConstructor<C>;
|
|
45
|
+
export type $SlotConstructor<C> = __vizeSlotTypes.$SlotConstructor<C>;
|
|
46
|
+
type $SlotConstructorArgumentLists<C> = __vizeSlotTypes.$SlotConstructorArgumentLists<C>;
|
|
47
|
+
type $SlotConstructorHasArguments<C> = __vizeSlotTypes.$SlotConstructorHasArguments<C>;
|
|
48
|
+
export type $SlotConstructorWithoutArguments<C> =
|
|
49
|
+
__vizeSlotTypes.$SlotConstructorWithoutArguments<C>;
|
|
50
|
+
export type $SlotConstructorWithArguments<C> = __vizeSlotTypes.$SlotConstructorWithArguments<C>;
|
|
51
|
+
export type $SlotConstructorArgs<C> = __vizeSlotTypes.$SlotConstructorArgs<C>;
|
|
52
|
+
export type $SlotConstructorInstance<C, Z, P> = __vizeSlotTypes.$SlotConstructorInstance<C, Z, P>;
|
|
53
|
+
export type $SlotHostSelector<C> = __vizeSlotTypes.$SlotHostSelector<C>;
|
|
112
54
|
|
|
113
55
|
// @ts-ignore A missing provider keeps its framework error-any fallback.
|
|
114
56
|
type $SilentAny = {}["__vizeSilentAny"];
|