vize 0.672.0 → 0.674.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.
|
@@ -201,7 +201,12 @@ type $ExtraInputKeys<
|
|
|
201
201
|
Declared,
|
|
202
202
|
Authored,
|
|
203
203
|
Allowed,
|
|
204
|
-
K extends keyof Authored = Exclude<
|
|
204
|
+
K extends keyof Authored = Exclude<
|
|
205
|
+
Exclude<keyof Authored, keyof Allowed>,
|
|
206
|
+
typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; __vizeTemplateChecker?: never }
|
|
207
|
+
? keyof P
|
|
208
|
+
: never
|
|
209
|
+
>,
|
|
205
210
|
> = K extends unknown
|
|
206
211
|
? $RelaxedDynamicUnionExtra<T, Declared, Authored, K> extends true
|
|
207
212
|
? never
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.674.0",
|
|
4
4
|
"description": "Vize - High-performance Vue.js toolchain in Rust",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"content-mapper-helpers.d.mts",
|
|
32
32
|
"content-mapper-helpers.d.ts",
|
|
33
33
|
"generated/content-mapper-types.d.ts",
|
|
34
|
+
"virtual-ts-checker.d.ts",
|
|
34
35
|
"virtual-ts-globals.d.ts",
|
|
35
36
|
"virtual-ts-patterns.d.ts",
|
|
36
37
|
"virtual-ts-slots.d.ts",
|
|
@@ -65,6 +66,9 @@
|
|
|
65
66
|
},
|
|
66
67
|
"types": "./virtual-ts.d.ts"
|
|
67
68
|
},
|
|
69
|
+
"./virtual-ts-checker": {
|
|
70
|
+
"types": "./virtual-ts-checker.d.ts"
|
|
71
|
+
},
|
|
68
72
|
"./content-mapper-helpers": {
|
|
69
73
|
"import": {
|
|
70
74
|
"types": "./content-mapper-helpers.d.mts"
|
|
@@ -81,7 +85,7 @@
|
|
|
81
85
|
"access": "public"
|
|
82
86
|
},
|
|
83
87
|
"dependencies": {
|
|
84
|
-
"@vizejs/native": "0.
|
|
88
|
+
"@vizejs/native": "0.674.0",
|
|
85
89
|
"oxc-transform": "0.144.0"
|
|
86
90
|
},
|
|
87
91
|
"devDependencies": {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Globals of a program whose templates vize checks. Content-mapper modules load
|
|
2
|
+
// them with a type-only import that declaration emit drops, so an emitted
|
|
3
|
+
// declaration brings only the helpers, never this policy, into its consumer.
|
|
4
|
+
import type {} from "./virtual-ts.js" with { "resolution-mode": "import" };
|
|
5
|
+
|
|
6
|
+
declare global {
|
|
7
|
+
// vue-tsc generic library components accept unknown attrs through this
|
|
8
|
+
// fallback, which vue-tsc itself declares unless `checkUnknownProps` is set.
|
|
9
|
+
var __VLS_PROPS_FALLBACK: Record<string, unknown>;
|
|
10
|
+
// vize checks these templates itself, so component input guards serve only
|
|
11
|
+
// TS and TSX callers and keep extra keys exact.
|
|
12
|
+
var __vizeTemplateChecker: true;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export {};
|
package/virtual-ts-globals.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
// Shared ambient helpers for vize virtual TypeScript.
|
|
2
2
|
declare global {
|
|
3
|
-
// ============================================
|
|
4
|
-
// Shared ambient helpers for vize virtual TypeScript
|
|
5
|
-
// Generated by vize
|
|
6
|
-
// ============================================
|
|
7
3
|
// Global script: one copy of these declarations per program replaces the
|
|
8
4
|
// preamble previously embedded in every generated .vue.ts module.
|
|
9
5
|
|
|
@@ -23,9 +19,6 @@ declare global {
|
|
|
23
19
|
style?: unknown;
|
|
24
20
|
}
|
|
25
21
|
}
|
|
26
|
-
// vue-tsc generic library components accept unknown attrs through this
|
|
27
|
-
// fallback, which vue-tsc itself declares unless `checkUnknownProps` is set.
|
|
28
|
-
var __VLS_PROPS_FALLBACK: Record<string, unknown>;
|
|
29
22
|
|
|
30
23
|
// Shared type helpers used by generated virtual modules
|
|
31
24
|
type __EmitShape<T> = T extends (...args: any[]) => any
|
|
@@ -232,7 +225,12 @@ declare global {
|
|
|
232
225
|
Declared,
|
|
233
226
|
Authored,
|
|
234
227
|
Allowed,
|
|
235
|
-
K extends keyof Authored = Exclude<
|
|
228
|
+
K extends keyof Authored = Exclude<
|
|
229
|
+
Exclude<keyof Authored, keyof Allowed>,
|
|
230
|
+
typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; __vizeTemplateChecker?: never }
|
|
231
|
+
? keyof P
|
|
232
|
+
: never
|
|
233
|
+
>,
|
|
236
234
|
> = K extends unknown
|
|
237
235
|
? $RelaxedDynamicUnionExtra<T, Declared, Authored, K> extends true
|
|
238
236
|
? never
|