vize 0.744.0 → 0.746.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.
@@ -48,6 +48,10 @@ linterConfigDef: JsonSchema = new JsonSchema {
48
48
  minimum = 0
49
49
  description = "Fail when warnings exceed this limit; absent means unlimited"
50
50
  }
51
+ ["noInlineConfig"] = new JsonSchema {
52
+ description = "Ignore eslint-disable comments in source files; defaults to false"
53
+ type = "boolean"
54
+ }
51
55
  ["reportUnusedDisableDirectives"] = new JsonSchema {
52
56
  description = "Report template eslint/oxlint disable comments that suppress no active rule; defaults to false"
53
57
  type = "boolean"
package/pkl/vize.pkl CHANGED
@@ -244,24 +244,6 @@ class NoRestrictedSyntaxOptions {
244
244
  selectors: Listing<RestrictedSyntaxEntry> = new Listing {}
245
245
  }
246
246
 
247
- class BlockLangBlock {
248
- lang: (String | Listing<String>)? = null
249
- allowNoLang: Boolean? = null
250
- required: Boolean? = null
251
- }
252
-
253
- class BlockLangOptions {
254
- script: BlockLangBlock? = null
255
- template: BlockLangBlock? = null
256
- style: BlockLangBlock? = null
257
- }
258
-
259
- class SortKeysOptions {
260
- order: "asc" | "desc" = "asc"
261
- caseSensitive: Boolean = true
262
- natural: Boolean = false
263
- }
264
-
265
247
  class LintRuleOptions {
266
248
  `script/define-macros-order`: DefineMacrosOrderOptions? = null
267
249
  `script/define-props-destructuring`: DefinePropsDestructuringOptions? = null
@@ -278,11 +260,26 @@ class LintRuleOptions {
278
260
  `vue/no-bare-strings-in-template`: NoBareStringsInTemplateOptions? = null
279
261
  `a11y/anchor-has-content`: AnchorHasContentOptions? = null
280
262
  `a11y/label-has-for`: LabelHasForOptions? = null
281
- `vue/block-lang`: BlockLangOptions? = null
263
+ `vue/block-lang`: LintRuleOptionTypes.BlockLangOptions? = null
264
+ `max-lines`: LintRuleOptionTypes.MaxLinesOptions? = null
265
+ `vue/max-lines-per-block`: LintRuleOptionTypes.MaxLinesPerBlockOptions? = null
266
+ `vue/max-props`: LintRuleOptionTypes.MaxPropsOptions? = null
267
+ `vue/max-template-depth`: LintRuleOptionTypes.MaxTemplateDepthOptions? = null
268
+ `vue/no-restricted-block`: LintRuleOptionTypes.RestrictedNames? = null
269
+ `vue/no-restricted-call-after-await`: LintRuleOptionTypes.CallAfterAwaitOptions? = null
270
+ `vue/no-restricted-class`: LintRuleOptionTypes.RestrictedNames? = null
271
+ `vue/no-restricted-component-names`: LintRuleOptionTypes.RestrictedNames? = null
272
+ `vue/no-restricted-component-options`: LintRuleOptionTypes.RestrictedNames? = null
273
+ `vue/no-restricted-custom-event`: LintRuleOptionTypes.RestrictedNames? = null
274
+ `vue/no-restricted-html-elements`: LintRuleOptionTypes.RestrictedNames? = null
275
+ `vue/no-restricted-props`: LintRuleOptionTypes.RestrictedNames? = null
276
+ `vue/no-restricted-static-attribute`: LintRuleOptionTypes.RestrictedNames? = null
277
+ `vue/no-restricted-v-on`: LintRuleOptionTypes.RestrictedNames? = null
278
+ `vue/no-unsupported-features`: LintRuleOptionTypes.UnsupportedFeaturesOptions? = null
282
279
  `vue/enforce-style-attribute`: EnforceStyleAttributeOptions? = null
283
280
  `vue/no-restricted-syntax`: (Listing<RestrictedSyntaxEntry> | NoRestrictedSyntaxOptions)? = null
284
281
  `vue/quote-props`: "as-needed"? = null
285
- `vue/sort-keys`: SortKeysOptions? = null
282
+ `vue/sort-keys`: LintRuleOptionTypes.SortKeysOptions? = null
286
283
  `vue/require-component-registration`: RequireComponentRegistrationOptions? = null
287
284
  `vue/sfc-element-order`: SfcElementOrderOptions? = null
288
285
  `vue/html-self-closing`: HtmlSelfClosingOptions? = null
@@ -313,12 +310,12 @@ class LinterConfig {
313
310
 
314
311
  /// Enable the native reactivity-loss rule unless rules explicitly disable it.
315
312
  strictReactivity: Boolean? = null
316
-
317
313
  /// Fail when warnings exceed this non-negative limit; absent means unlimited.
318
314
  maxWarnings: Int(isBetween(0, 9007199254740991))? = null
319
-
320
315
  /// Report template eslint/oxlint disable comments that suppress no active rule
321
316
  reportUnusedDisableDirectives: Boolean? = null
317
+ /// Ignore eslint-disable comments in source files
318
+ noInlineConfig: Boolean? = null
322
319
 
323
320
  rules: Mapping<String, RuleSeverity>? = null
324
321
  ruleOptions: LintRuleOptions? = null
@@ -250,6 +250,10 @@
250
250
  "type": "integer",
251
251
  "minimum": 0
252
252
  },
253
+ "noInlineConfig": {
254
+ "description": "Ignore eslint-disable comments in source files; defaults to false",
255
+ "type": "boolean"
256
+ },
253
257
  "reportUnusedDisableDirectives": {
254
258
  "description": "Report template eslint/oxlint disable comments that suppress no active rule; defaults to false",
255
259
  "type": "boolean"
@@ -769,6 +773,260 @@
769
773
  },
770
774
  "additionalProperties": false
771
775
  },
776
+ "max-lines": {
777
+ "oneOf": [
778
+ {
779
+ "type": "integer",
780
+ "minimum": 0
781
+ },
782
+ {
783
+ "type": "object",
784
+ "properties": {
785
+ "max": {
786
+ "type": "integer",
787
+ "minimum": 0
788
+ },
789
+ "skipComments": {
790
+ "type": "boolean"
791
+ },
792
+ "skipBlankLines": {
793
+ "type": "boolean"
794
+ }
795
+ },
796
+ "additionalProperties": false
797
+ }
798
+ ]
799
+ },
800
+ "vue/max-lines-per-block": {
801
+ "type": "object",
802
+ "properties": {
803
+ "style": {
804
+ "type": "integer",
805
+ "minimum": 1
806
+ },
807
+ "template": {
808
+ "type": "integer",
809
+ "minimum": 1
810
+ },
811
+ "script": {
812
+ "type": "integer",
813
+ "minimum": 1
814
+ },
815
+ "skipBlankLines": {
816
+ "type": "boolean"
817
+ }
818
+ },
819
+ "additionalProperties": false
820
+ },
821
+ "vue/max-props": {
822
+ "type": "object",
823
+ "properties": {
824
+ "maxProps": {
825
+ "type": "integer"
826
+ }
827
+ },
828
+ "additionalProperties": false
829
+ },
830
+ "vue/max-template-depth": {
831
+ "type": "object",
832
+ "properties": {
833
+ "maxDepth": {
834
+ "type": "integer"
835
+ }
836
+ },
837
+ "additionalProperties": false
838
+ },
839
+ "vue/no-restricted-block": {
840
+ "oneOf": [
841
+ {
842
+ "type": "string"
843
+ },
844
+ {
845
+ "type": "array",
846
+ "items": {
847
+ "type": "string"
848
+ }
849
+ }
850
+ ]
851
+ },
852
+ "vue/no-restricted-call-after-await": {
853
+ "oneOf": [
854
+ {
855
+ "type": "object",
856
+ "properties": {
857
+ "module": {
858
+ "type": "string"
859
+ },
860
+ "path": {
861
+ "oneOf": [
862
+ {
863
+ "type": "string"
864
+ },
865
+ {
866
+ "type": "array",
867
+ "items": {
868
+ "type": "string"
869
+ }
870
+ }
871
+ ]
872
+ },
873
+ "message": {
874
+ "type": "string"
875
+ }
876
+ },
877
+ "additionalProperties": false,
878
+ "required": ["module"]
879
+ },
880
+ {
881
+ "type": "array",
882
+ "items": {
883
+ "type": "object",
884
+ "properties": {
885
+ "module": {
886
+ "type": "string"
887
+ },
888
+ "path": {
889
+ "oneOf": [
890
+ {
891
+ "type": "string"
892
+ },
893
+ {
894
+ "type": "array",
895
+ "items": {
896
+ "type": "string"
897
+ }
898
+ }
899
+ ]
900
+ },
901
+ "message": {
902
+ "type": "string"
903
+ }
904
+ },
905
+ "additionalProperties": false,
906
+ "required": ["module"]
907
+ }
908
+ }
909
+ ]
910
+ },
911
+ "vue/no-restricted-class": {
912
+ "oneOf": [
913
+ {
914
+ "type": "string"
915
+ },
916
+ {
917
+ "type": "array",
918
+ "items": {
919
+ "type": "string"
920
+ }
921
+ }
922
+ ]
923
+ },
924
+ "vue/no-restricted-component-names": {
925
+ "oneOf": [
926
+ {
927
+ "type": "string"
928
+ },
929
+ {
930
+ "type": "array",
931
+ "items": {
932
+ "type": "string"
933
+ }
934
+ }
935
+ ]
936
+ },
937
+ "vue/no-restricted-component-options": {
938
+ "oneOf": [
939
+ {
940
+ "type": "string"
941
+ },
942
+ {
943
+ "type": "array",
944
+ "items": {
945
+ "type": "string"
946
+ }
947
+ }
948
+ ]
949
+ },
950
+ "vue/no-restricted-custom-event": {
951
+ "oneOf": [
952
+ {
953
+ "type": "string"
954
+ },
955
+ {
956
+ "type": "array",
957
+ "items": {
958
+ "type": "string"
959
+ }
960
+ }
961
+ ]
962
+ },
963
+ "vue/no-restricted-html-elements": {
964
+ "oneOf": [
965
+ {
966
+ "type": "string"
967
+ },
968
+ {
969
+ "type": "array",
970
+ "items": {
971
+ "type": "string"
972
+ }
973
+ }
974
+ ]
975
+ },
976
+ "vue/no-restricted-props": {
977
+ "oneOf": [
978
+ {
979
+ "type": "string"
980
+ },
981
+ {
982
+ "type": "array",
983
+ "items": {
984
+ "type": "string"
985
+ }
986
+ }
987
+ ]
988
+ },
989
+ "vue/no-restricted-static-attribute": {
990
+ "oneOf": [
991
+ {
992
+ "type": "string"
993
+ },
994
+ {
995
+ "type": "array",
996
+ "items": {
997
+ "type": "string"
998
+ }
999
+ }
1000
+ ]
1001
+ },
1002
+ "vue/no-restricted-v-on": {
1003
+ "oneOf": [
1004
+ {
1005
+ "type": "string"
1006
+ },
1007
+ {
1008
+ "type": "array",
1009
+ "items": {
1010
+ "type": "string"
1011
+ }
1012
+ }
1013
+ ]
1014
+ },
1015
+ "vue/no-unsupported-features": {
1016
+ "type": "object",
1017
+ "properties": {
1018
+ "version": {
1019
+ "type": "string"
1020
+ },
1021
+ "ignores": {
1022
+ "type": "array",
1023
+ "items": {
1024
+ "type": "string"
1025
+ }
1026
+ }
1027
+ },
1028
+ "additionalProperties": false
1029
+ },
772
1030
  "vue/enforce-style-attribute": {
773
1031
  "type": "object",
774
1032
  "properties": {
@@ -236,6 +236,10 @@ export interface LinterConfig {
236
236
  * Fail when warnings exceed this limit; absent means unlimited
237
237
  */
238
238
  maxWarnings?: number;
239
+ /**
240
+ * Ignore eslint-disable comments in source files; defaults to false
241
+ */
242
+ noInlineConfig?: boolean;
239
243
  /**
240
244
  * Report template eslint/oxlint disable comments that suppress no active rule; defaults to false
241
245
  */
@@ -329,6 +333,49 @@ export interface LintRuleOptions {
329
333
  required?: boolean;
330
334
  };
331
335
  };
336
+ "max-lines"?:
337
+ | number
338
+ | {
339
+ max?: number;
340
+ skipComments?: boolean;
341
+ skipBlankLines?: boolean;
342
+ };
343
+ "vue/max-lines-per-block"?: {
344
+ style?: number;
345
+ template?: number;
346
+ script?: number;
347
+ skipBlankLines?: boolean;
348
+ };
349
+ "vue/max-props"?: {
350
+ maxProps?: number;
351
+ };
352
+ "vue/max-template-depth"?: {
353
+ maxDepth?: number;
354
+ };
355
+ "vue/no-restricted-block"?: string | string[];
356
+ "vue/no-restricted-call-after-await"?:
357
+ | {
358
+ module: string;
359
+ path?: string | string[];
360
+ message?: string;
361
+ }
362
+ | {
363
+ module: string;
364
+ path?: string | string[];
365
+ message?: string;
366
+ }[];
367
+ "vue/no-restricted-class"?: string | string[];
368
+ "vue/no-restricted-component-names"?: string | string[];
369
+ "vue/no-restricted-component-options"?: string | string[];
370
+ "vue/no-restricted-custom-event"?: string | string[];
371
+ "vue/no-restricted-html-elements"?: string | string[];
372
+ "vue/no-restricted-props"?: string | string[];
373
+ "vue/no-restricted-static-attribute"?: string | string[];
374
+ "vue/no-restricted-v-on"?: string | string[];
375
+ "vue/no-unsupported-features"?: {
376
+ version?: string;
377
+ ignores?: string[];
378
+ };
332
379
  "vue/enforce-style-attribute"?: {
333
380
  allow?: ("plain" | "scoped" | "module")[];
334
381
  };
@@ -32,6 +32,7 @@ export const LINT_RULE_NAMES = [
32
32
  "a11y/no-static-element-interactions",
33
33
  "a11y/placeholder-label-option",
34
34
  "a11y/role-has-required-aria-props",
35
+ "a11y/role-img-has-name",
35
36
  "a11y/tabindex-no-positive",
36
37
  "a11y/use-list",
37
38
  "css/no-display-none",
@@ -62,6 +63,7 @@ export const LINT_RULE_NAMES = [
62
63
  "html/no-duplicate-dt",
63
64
  "html/no-empty-palpable-content",
64
65
  "html/require-datetime",
66
+ "max-lines",
65
67
  "musea/no-empty-variant",
66
68
  "musea/prefer-design-tokens",
67
69
  "musea/require-component",
@@ -155,12 +157,51 @@ export const LINT_RULE_NAMES = [
155
157
  "script/valid-next-tick",
156
158
  "ssr/no-browser-globals-in-ssr",
157
159
  "ssr/no-hydration-mismatch",
160
+ "type/await-thenable",
161
+ "type/no-array-delete",
162
+ "type/no-base-to-string",
163
+ "type/no-confusing-void-expression",
164
+ "type/no-deprecated",
165
+ "type/no-duplicate-type-constituents",
158
166
  "type/no-floating-promises",
167
+ "type/no-for-in-array",
168
+ "type/no-generated-empty-object-type",
169
+ "type/no-implied-eval",
170
+ "type/no-meaningless-void-operator",
171
+ "type/no-misused-promises",
172
+ "type/no-misused-spread",
173
+ "type/no-mixed-enums",
159
174
  "type/no-reactivity-loss",
175
+ "type/no-redundant-type-constituents",
176
+ "type/no-unnecessary-boolean-literal-compare",
177
+ "type/no-unnecessary-condition",
178
+ "type/no-unnecessary-template-expression",
179
+ "type/no-unnecessary-type-arguments",
180
+ "type/no-unnecessary-type-assertion",
181
+ "type/no-unnecessary-type-conversion",
182
+ "type/no-unsafe-argument",
183
+ "type/no-unsafe-assignment",
184
+ "type/no-unsafe-call",
185
+ "type/no-unsafe-enum-assignment",
186
+ "type/no-unsafe-enum-comparison",
187
+ "type/no-unsafe-member-access",
188
+ "type/no-unsafe-return",
160
189
  "type/no-unsafe-template-binding",
190
+ "type/no-unsafe-unary-minus",
191
+ "type/only-throw-error",
192
+ "type/prefer-promise-reject-errors",
193
+ "type/prefer-reduce-type-parameter",
194
+ "type/prefer-return-this-type",
195
+ "type/related-getter-setter-pairs",
196
+ "type/require-await",
161
197
  "type/require-typed-emits",
162
198
  "type/require-typed-props",
199
+ "type/restrict-plus-operands",
200
+ "type/restrict-template-expressions",
201
+ "type/return-await",
163
202
  "type/strict-boolean-expressions",
203
+ "type/unbound-method",
204
+ "type/use-unknown-in-catch-callback-variable",
164
205
  "vapor/no-inline-template",
165
206
  "vapor/no-vue-lifecycle-events",
166
207
  "vapor/prefer-static-class",
@@ -182,7 +223,10 @@ export const LINT_RULE_NAMES = [
182
223
  "vue/html-self-closing",
183
224
  "vue/jsx-uses-vars",
184
225
  "vue/match-component-file-name",
226
+ "vue/max-lines-per-block",
227
+ "vue/max-props",
185
228
  "vue/max-template-complexity",
229
+ "vue/max-template-depth",
186
230
  "vue/multi-word-component-names",
187
231
  "vue/mustache-interpolation-spacing",
188
232
  "vue/next-tick-style",
@@ -229,8 +273,18 @@ export const LINT_RULE_NAMES = [
229
273
  "vue/no-props-shadow",
230
274
  "vue/no-ref-object-reactivity-loss",
231
275
  "vue/no-reserved-component-names",
276
+ "vue/no-restricted-block",
277
+ "vue/no-restricted-call-after-await",
278
+ "vue/no-restricted-class",
279
+ "vue/no-restricted-component-names",
280
+ "vue/no-restricted-component-options",
281
+ "vue/no-restricted-custom-event",
282
+ "vue/no-restricted-html-elements",
283
+ "vue/no-restricted-props",
284
+ "vue/no-restricted-static-attribute",
232
285
  "vue/no-restricted-syntax",
233
286
  "vue/no-restricted-v-bind",
287
+ "vue/no-restricted-v-on",
234
288
  "vue/no-root-v-if",
235
289
  "vue/no-script-non-standard-lang",
236
290
  "vue/no-setup-props-reactivity-loss",
@@ -247,9 +301,11 @@ export const LINT_RULE_NAMES = [
247
301
  "vue/no-undefined-refs",
248
302
  "vue/no-unsafe-url",
249
303
  "vue/no-unsandboxed-iframe",
304
+ "vue/no-unsupported-features",
250
305
  "vue/no-unused-components",
251
306
  "vue/no-unused-properties",
252
307
  "vue/no-unused-refs",
308
+ "vue/no-unused-script-vars",
253
309
  "vue/no-unused-setup-bindings",
254
310
  "vue/no-unused-vars",
255
311
  "vue/no-use-v-else-with-v-for",
@@ -265,6 +321,7 @@ export const LINT_RULE_NAMES = [
265
321
  "vue/no-v-text-v-html-on-component",
266
322
  "vue/object-shorthand",
267
323
  "vue/permitted-contents",
324
+ "vue/prefer-const",
268
325
  "vue/prefer-prop-type-boolean-first",
269
326
  "vue/prefer-props-shorthand",
270
327
  "vue/prefer-template",
@@ -109,14 +109,14 @@ declare global {
109
109
  : never;
110
110
  type __Ref<T> = import("vue").Ref<T>;
111
111
  type __ShallowRef<T> = import("vue").ShallowRef<T>;
112
- type $KebabCase<
113
- S extends string,
114
- Acc extends string = "",
115
- > = S extends `${infer Head}${infer Tail}`
116
- ? Head extends Lowercase<Head>
117
- ? $KebabCase<Tail, `${Acc}${Head}`>
118
- : $KebabCase<Tail, `${Acc}-${Lowercase<Head>}`>
119
- : `${Acc}${S}`;
112
+ type $KebabCase<S extends string, Acc extends string = ""> =
113
+ S extends Lowercase<S>
114
+ ? `${Acc}${S}`
115
+ : S extends `${infer Head}${infer Tail}`
116
+ ? Head extends Lowercase<Head>
117
+ ? $KebabCase<Tail, `${Acc}${Head}`>
118
+ : $KebabCase<Tail, `${Acc}-${Lowercase<Head>}`>
119
+ : `${Acc}${S}`;
120
120
  type $KebabProps<T> = { [K in keyof T & string as $KebabCase<K>]: T[K] };
121
121
  type $RequiredKeys<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? never : K }[keyof T];
122
122
  type $DomListenerProps = {
@@ -170,3 +170,84 @@ export type $ClosedEmit<C, A = C> = [C] extends [never]
170
170
  : [E]
171
171
  : false
172
172
  : false;
173
+ // Per-usage listener boxes over `typeof Component`; `NoInfer<C>` keeps them non-distributive.
174
+ export type $UsageLibrary<C> =
175
+ NoInfer<C> extends { __vizeCheck: any } | { readonly __vizeComponentMarker: true }
176
+ ? false
177
+ : NoInfer<C> extends (...args: any[]) => infer __R
178
+ ? 0 extends 1 & __R
179
+ ? false
180
+ : "__ctx" extends keyof __R
181
+ ? true
182
+ : false
183
+ : false;
184
+ export type $UsagePropsBox<C> =
185
+ NoInfer<C> extends { new (...args: any[]): { $props: infer __P } }
186
+ ? [__P]
187
+ : NoInfer<C> extends (props: infer __P, ...args: any[]) => any
188
+ ? [__P]
189
+ : [];
190
+ export type $UsageEmitPropsBox<C> =
191
+ NoInfer<C> extends { __vizeEmitProps?: infer __EP } ? [__EP] : [];
192
+ // A component whose raw fallthrough source admits `{}` has no required fallthrough key: removing owned keys adds none.
193
+ type $FallthroughSourceMember<C> = C extends {
194
+ readonly __vizeHasFallthroughProps: true;
195
+ readonly __vizeFallthroughSource?: infer __S;
196
+ }
197
+ ? unknown extends __S
198
+ ? false
199
+ : [
200
+ NonNullable<__S> extends infer __N
201
+ ? __N extends unknown
202
+ ? {} extends __N
203
+ ? never
204
+ : __N
205
+ : never
206
+ : never,
207
+ ] extends [never]
208
+ ? true
209
+ : false
210
+ : false;
211
+ export type $FallthroughSourceAdmitsEmpty<C> = [C] extends [never]
212
+ ? false
213
+ : [$FallthroughSourceMember<C>] extends [true]
214
+ ? true
215
+ : false;
216
+ // The per-module emit gate input, shared so each component resolves it once per program.
217
+ type $EmitGateNativeInput<C> = C extends new (...args: any[]) => any
218
+ ? C extends { readonly __vizeComponentMarker: true }
219
+ ? false
220
+ : true
221
+ : false;
222
+ type $EmitGateInputOf<L, C, F, R = F extends (...args: any) => infer T ? T : any, U = R> = [
223
+ L,
224
+ ] extends [true]
225
+ ? F
226
+ : $ClosedEmit<C> extends [unknown]
227
+ ? F
228
+ : true extends (
229
+ 0 extends 1 & C
230
+ ? false
231
+ : C extends { __vizeResolveEmitProps?: infer X }
232
+ ? X extends (...args: any[]) => any
233
+ ? true
234
+ : $EmitGateNativeInput<C>
235
+ : C extends { __vizeResolveProps?: infer X }
236
+ ? X extends (...args: any[]) => any
237
+ ? true
238
+ : $EmitGateNativeInput<C>
239
+ : $EmitGateNativeInput<C>
240
+ )
241
+ ? F
242
+ : [R] extends [never]
243
+ ? F
244
+ : [
245
+ R extends unknown
246
+ ? (<G>() => G extends R ? 1 : 2) extends <G>() => G extends U ? 1 : 2
247
+ ? true
248
+ : false
249
+ : false,
250
+ ] extends [true]
251
+ ? (props: any) => R
252
+ : F;
253
+ export type $EmitGateInput<L, C, F> = $EmitGateInputOf<L, C, F>;
@@ -0,0 +1,40 @@
1
+ // Generated from the canonical template-ref registry helpers. Do not edit.
2
+ // Template-ref registry targets, shared so each instantiation is cached once per program.
3
+ export type $DomElement<_Tag extends string, _Svg extends boolean = false> = _Svg extends true
4
+ ? _Tag extends keyof SVGElementTagNameMap
5
+ ? SVGElementTagNameMap[_Tag]
6
+ : Element
7
+ : _Tag extends keyof HTMLElementTagNameMap
8
+ ? HTMLElementTagNameMap[_Tag]
9
+ : Element;
10
+ export type $TemplateComponentRef<_C> = _C extends string
11
+ ? _C extends keyof HTMLElementTagNameMap
12
+ ? HTMLElementTagNameMap[_C]
13
+ : _C extends keyof SVGElementTagNameMap
14
+ ? SVGElementTagNameMap[_C]
15
+ : Element
16
+ : _C extends abstract new (...args: any[]) => infer _I
17
+ ? _I
18
+ : _C extends (props: any, ctx: any, expose: (exposed: infer _E) => any, ...args: any[]) => any
19
+ ? NonNullable<_E>
20
+ : any;
21
+ export type $RefInstanceFactory<_C> = 0 extends 1 & _C
22
+ ? (component: _C) => (props: any) => undefined
23
+ : _C extends { __vizeResolveRef?: infer _F }
24
+ ? _F extends (...args: any[]) => any
25
+ ? (component: _C) => _F
26
+ : (component: _C) => (props: any) => undefined
27
+ : _C extends (props: any, ctx?: any, expose?: any, ...args: any[]) => any
28
+ ? (component: _C) => _C
29
+ : (component: _C) => (props: any) => undefined;
30
+ export type $TemplateRefInstance<_T, _K extends keyof _T, _C> = 0 extends 1 & _C
31
+ ? $TemplateComponentRef<_C>
32
+ : _C extends (props: any, ctx?: any, expose?: any, ...args: any[]) => any
33
+ ? _T[_K] extends () => infer _R
34
+ ? _R extends { __ctx?: infer _X }
35
+ ? NonNullable<_X> extends { expose: (exposed: infer _E) => any }
36
+ ? NonNullable<_E>
37
+ : $TemplateComponentRef<_C>
38
+ : $TemplateComponentRef<_C>
39
+ : $TemplateComponentRef<_C>
40
+ : $TemplateComponentRef<_C>;