vize 0.615.0 → 0.616.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vize",
3
- "version": "0.615.0",
3
+ "version": "0.616.0",
4
4
  "description": "Vize - High-performance Vue.js toolchain in Rust",
5
5
  "keywords": [
6
6
  "cli",
@@ -80,7 +80,7 @@
80
80
  "access": "public"
81
81
  },
82
82
  "dependencies": {
83
- "@vizejs/native": "0.615.0",
83
+ "@vizejs/native": "0.616.0",
84
84
  "oxc-transform": "0.144.0"
85
85
  },
86
86
  "devDependencies": {
package/virtual-ts.d.cts CHANGED
@@ -110,8 +110,23 @@ export type $SlotHostSelector<C> = [$DirectSlotConstructor<C>] extends [never]
110
110
  ? <S>(instance: unknown, slots: S) => S
111
111
  : <I extends { $slots: any }>(instance: I, slots: unknown) => I["$slots"];
112
112
 
113
- // @ts-ignore The unchecked payload of an untyped host: an error type, never reported.
113
+ // @ts-ignore A missing provider keeps its framework error-any fallback.
114
114
  type $SilentAny = {}["__vizeSilentAny"];
115
+ export type $RegisteredSlotProvider<
116
+ G,
117
+ K extends string | number | symbol,
118
+ F extends string | number | symbol = K,
119
+ L extends string | number | symbol = F,
120
+ > =
121
+ $IsAny<G> extends true
122
+ ? $SilentAny
123
+ : K extends keyof G
124
+ ? G[K]
125
+ : F extends keyof G
126
+ ? G[F]
127
+ : L extends keyof G
128
+ ? G[L]
129
+ : $SilentAny;
115
130
  type $NamedSlotPayload<S, N> = {
116
131
  [K in keyof S & N]-?: NonNullable<S[K]> extends (props: infer P, ...args: any[]) => any
117
132
  ? P
@@ -121,9 +136,11 @@ type $NamedSlotPayload<S, N> = {
121
136
  ? any
122
137
  : P
123
138
  : any;
124
- export type $SlotPayload<S, N> =
139
+ export type $SlotPayload<S, N, C = $RegisteredSlotProvider<any, never>> =
125
140
  $IsAny<S> extends true
126
- ? $SilentAny
141
+ ? $IsAny<C> extends true
142
+ ? C
143
+ : any
127
144
  : string extends N
128
145
  ? string extends keyof S
129
146
  ? $NamedSlotPayload<S, N>
package/virtual-ts.d.mts CHANGED
@@ -110,8 +110,23 @@ export type $SlotHostSelector<C> = [$DirectSlotConstructor<C>] extends [never]
110
110
  ? <S>(instance: unknown, slots: S) => S
111
111
  : <I extends { $slots: any }>(instance: I, slots: unknown) => I["$slots"];
112
112
 
113
- // @ts-ignore The unchecked payload of an untyped host: an error type, never reported.
113
+ // @ts-ignore A missing provider keeps its framework error-any fallback.
114
114
  type $SilentAny = {}["__vizeSilentAny"];
115
+ export type $RegisteredSlotProvider<
116
+ G,
117
+ K extends string | number | symbol,
118
+ F extends string | number | symbol = K,
119
+ L extends string | number | symbol = F,
120
+ > =
121
+ $IsAny<G> extends true
122
+ ? $SilentAny
123
+ : K extends keyof G
124
+ ? G[K]
125
+ : F extends keyof G
126
+ ? G[F]
127
+ : L extends keyof G
128
+ ? G[L]
129
+ : $SilentAny;
115
130
  type $NamedSlotPayload<S, N> = {
116
131
  [K in keyof S & N]-?: NonNullable<S[K]> extends (props: infer P, ...args: any[]) => any
117
132
  ? P
@@ -121,9 +136,11 @@ type $NamedSlotPayload<S, N> = {
121
136
  ? any
122
137
  : P
123
138
  : any;
124
- export type $SlotPayload<S, N> =
139
+ export type $SlotPayload<S, N, C = $RegisteredSlotProvider<any, never>> =
125
140
  $IsAny<S> extends true
126
- ? $SilentAny
141
+ ? $IsAny<C> extends true
142
+ ? C
143
+ : any
127
144
  : string extends N
128
145
  ? string extends keyof S
129
146
  ? $NamedSlotPayload<S, N>
package/virtual-ts.d.ts CHANGED
@@ -110,8 +110,23 @@ export type $SlotHostSelector<C> = [$DirectSlotConstructor<C>] extends [never]
110
110
  ? <S>(instance: unknown, slots: S) => S
111
111
  : <I extends { $slots: any }>(instance: I, slots: unknown) => I["$slots"];
112
112
 
113
- // @ts-ignore The unchecked payload of an untyped host: an error type, never reported.
113
+ // @ts-ignore A missing provider keeps its framework error-any fallback.
114
114
  type $SilentAny = {}["__vizeSilentAny"];
115
+ export type $RegisteredSlotProvider<
116
+ G,
117
+ K extends string | number | symbol,
118
+ F extends string | number | symbol = K,
119
+ L extends string | number | symbol = F,
120
+ > =
121
+ $IsAny<G> extends true
122
+ ? $SilentAny
123
+ : K extends keyof G
124
+ ? G[K]
125
+ : F extends keyof G
126
+ ? G[F]
127
+ : L extends keyof G
128
+ ? G[L]
129
+ : $SilentAny;
115
130
  type $NamedSlotPayload<S, N> = {
116
131
  [K in keyof S & N]-?: NonNullable<S[K]> extends (props: infer P, ...args: any[]) => any
117
132
  ? P
@@ -121,9 +136,11 @@ type $NamedSlotPayload<S, N> = {
121
136
  ? any
122
137
  : P
123
138
  : any;
124
- export type $SlotPayload<S, N> =
139
+ export type $SlotPayload<S, N, C = $RegisteredSlotProvider<any, never>> =
125
140
  $IsAny<S> extends true
126
- ? $SilentAny
141
+ ? $IsAny<C> extends true
142
+ ? C
143
+ : any
127
144
  : string extends N
128
145
  ? string extends keyof S
129
146
  ? $NamedSlotPayload<S, N>