svelte-docinfo 0.7.0 → 0.8.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/README.md +16 -9
- package/dist/analyze-core.d.ts +55 -27
- package/dist/analyze-core.d.ts.map +1 -1
- package/dist/analyze-core.js +51 -45
- package/dist/analyze.d.ts +12 -31
- package/dist/analyze.d.ts.map +1 -1
- package/dist/analyze.js +5 -3
- package/dist/cli.d.ts +4 -7
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +4 -3
- package/dist/concurrency.d.ts +6 -3
- package/dist/concurrency.d.ts.map +1 -1
- package/dist/concurrency.js +6 -3
- package/dist/dep-resolver.d.ts +6 -3
- package/dist/dep-resolver.d.ts.map +1 -1
- package/dist/dep-resolver.js +6 -3
- package/dist/diagnostics.d.ts +18 -9
- package/dist/diagnostics.d.ts.map +1 -1
- package/dist/diagnostics.js +20 -9
- package/dist/discovery.d.ts +16 -21
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +9 -17
- package/dist/error.d.ts +3 -4
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js +3 -4
- package/dist/exports.d.ts +7 -7
- package/dist/exports.d.ts.map +1 -1
- package/dist/exports.js +8 -8
- package/dist/files.d.ts +0 -3
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +5 -5
- package/dist/index.js +1 -1
- package/dist/postprocess.d.ts +13 -6
- package/dist/postprocess.d.ts.map +1 -1
- package/dist/postprocess.js +13 -6
- package/dist/session.d.ts +36 -12
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +39 -24
- package/dist/source-config.d.ts +22 -19
- package/dist/source-config.d.ts.map +1 -1
- package/dist/source-config.js +14 -12
- package/dist/source.d.ts +17 -13
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +4 -7
- package/dist/svelte.d.ts +21 -4
- package/dist/svelte.d.ts.map +1 -1
- package/dist/svelte.js +48 -15
- package/dist/tsdoc.d.ts +4 -8
- package/dist/tsdoc.d.ts.map +1 -1
- package/dist/tsdoc.js +4 -8
- package/dist/types.d.ts +607 -171
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +71 -28
- package/dist/typescript-exports.d.ts +7 -7
- package/dist/typescript-exports.d.ts.map +1 -1
- package/dist/typescript-exports.js +15 -13
- package/dist/typescript-extract-class.d.ts +2 -1
- package/dist/typescript-extract-class.d.ts.map +1 -1
- package/dist/typescript-extract-class.js +7 -7
- package/dist/typescript-extract-function.js +3 -3
- package/dist/typescript-extract-shared.d.ts +32 -12
- package/dist/typescript-extract-shared.d.ts.map +1 -1
- package/dist/typescript-extract-shared.js +55 -34
- package/dist/typescript-extract-type-json.d.ts +11 -3
- package/dist/typescript-extract-type-json.d.ts.map +1 -1
- package/dist/typescript-extract-type-json.js +12 -9
- package/dist/typescript-extract-type-properties.js +3 -3
- package/dist/typescript-extract-type.js +7 -7
- package/dist/typescript-program.d.ts +23 -8
- package/dist/typescript-program.d.ts.map +1 -1
- package/dist/typescript-program.js +23 -14
- package/dist/vite.d.ts +12 -35
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +7 -6
- package/package.json +9 -29
- package/virtual-svelte-docinfo.d.ts +9 -7
package/dist/types.d.ts
CHANGED
|
@@ -122,8 +122,9 @@ export declare const GenericParamJson: z.ZodObject<{
|
|
|
122
122
|
export type GenericParamJson = z.infer<typeof GenericParamJson>;
|
|
123
123
|
/**
|
|
124
124
|
* Structured type information — the machine-readable counterpart to the flat
|
|
125
|
-
* type strings (`ParameterJson.type`, `ComponentPropJson.type`,
|
|
126
|
-
* `typeSignature` fields that carry a `typeInfo` sibling
|
|
125
|
+
* type strings (`ParameterJson.type`, `ComponentPropJson.type`, the
|
|
126
|
+
* `typeSignature` fields that carry a `typeInfo` sibling, and `returnType`
|
|
127
|
+
* beside `returnTypeInfo`).
|
|
127
128
|
*
|
|
128
129
|
* **Absence contract**: the field holding a `TypeJson` is absent when the flat
|
|
129
130
|
* string is the whole story — the type is terminal at the root (an intrinsic,
|
|
@@ -182,12 +183,19 @@ export type GenericParamJson = z.infer<typeof GenericParamJson>;
|
|
|
182
183
|
* still resolves, but a structural walk can't distinguish from a printed
|
|
183
184
|
* signature).
|
|
184
185
|
*
|
|
185
|
-
* **Normalization**:
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
186
|
+
* **Normalization**: the optional-widening `undefined` member is dropped from a
|
|
187
|
+
* root union like the flat string drops it (`optional: true` carries it) — but
|
|
188
|
+
* the flat string strips at the top level only, while the tree strips at every
|
|
189
|
+
* `optional`-flagged position it expands, so `Snippet<[a: string, b?: number]>`
|
|
190
|
+
* prints `b?: number | undefined` while the tuple element reports `number` with
|
|
191
|
+
* `optional: true`. Treat `typeSignature` as the checker's canonical rendering
|
|
192
|
+
* and the structured fields as normalized. At property sites the strip applies
|
|
193
|
+
* only when the checker widened: under `exactOptionalPropertyTypes` an
|
|
194
|
+
* author-written `undefined` on an optional property is kept (parameters and
|
|
195
|
+
* tuple elements always strip). Separately, a `true | false` literal pair
|
|
196
|
+
* collapses to the `boolean` intrinsic (the checker expands `boolean` inside
|
|
197
|
+
* unions). A union reduced to one member by either rule becomes that member
|
|
198
|
+
* directly, never a 1-member union.
|
|
191
199
|
*
|
|
192
200
|
* Terminal `text` fields are printed with `NoTruncation` up to a 1000-char
|
|
193
201
|
* budget, past which the checker's own elided rendering is used — so `text` is
|
|
@@ -199,14 +207,15 @@ export type GenericParamJson = z.infer<typeof GenericParamJson>;
|
|
|
199
207
|
* (`z.infer<typeof S>`, valibot's `InferOutput`) carries no alias symbol, so
|
|
200
208
|
* the checker expands its whole structure at every use.
|
|
201
209
|
*
|
|
202
|
-
* **Written-name recovery**:
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
* props, snippet parameters), each bare
|
|
206
|
-
* type reference in it is resolved by checker type identity, and a type the
|
|
207
|
-
* checker has no name for — the alias-dropped shapes above — emits
|
|
210
|
+
* **Written-name recovery**: at each annotated position, each bare type
|
|
211
|
+
* reference is resolved by checker type identity, and a type the checker has
|
|
212
|
+
* no name for — the alias-dropped shapes above — emits
|
|
208
213
|
* `{kind: 'reference', name}` instead of expanding, alias-lost unions and
|
|
209
|
-
* intersections included. The
|
|
214
|
+
* intersections included. The annotated positions: return types (per overload
|
|
215
|
+
* too), parameters, variables, type-alias declarations, properties of type
|
|
216
|
+
* aliases, interfaces, and classes, index signatures, accessors (the getter's
|
|
217
|
+
* return, else a setter-only accessor's parameter), component props, and
|
|
218
|
+
* snippet parameters. The name resolves through import aliases to the
|
|
210
219
|
* importable one (`import {Original as Renamed}` recovers `Original`); a name
|
|
211
220
|
* the checker has is never overridden; `typeof` queries, import types, inline
|
|
212
221
|
* type literals, and argument-carrying references (`z.infer<typeof S>` itself,
|
|
@@ -215,7 +224,8 @@ export type GenericParamJson = z.infer<typeof GenericParamJson>;
|
|
|
215
224
|
* the root, relaxing the absence contract the way alias roots do: a
|
|
216
225
|
* checker-named bare reference defers to a flat sibling printing the same
|
|
217
226
|
* name, while a recovered one stands against the anonymous expansion, so the
|
|
218
|
-
* name exists only in the tree.
|
|
227
|
+
* name exists only in the tree. Both recovery channels still fire at the depth
|
|
228
|
+
* cap, so a capped alias-lost type emits its reference instead of elided text.
|
|
219
229
|
*
|
|
220
230
|
* **Registry recovery**: behind the written channel, unannotated positions
|
|
221
231
|
* recover through the analyzed set's alias registry — any exported,
|
|
@@ -224,9 +234,10 @@ export type GenericParamJson = z.infer<typeof GenericParamJson>;
|
|
|
224
234
|
* `module`, the declaring module's `ModuleJson.path` — provenance for
|
|
225
235
|
* collision-exact linking, and always an emitted module (gated modules never
|
|
226
236
|
* register), so a consumer lookup by `(module, name)` can't dangle. `module`
|
|
227
|
-
*
|
|
228
|
-
* the author wrote
|
|
229
|
-
* checker-named references
|
|
237
|
+
* appears only on registry-recovered references: written-channel recoveries
|
|
238
|
+
* name whatever the author wrote (which may not be the registry's winner), and
|
|
239
|
+
* checker-named references and alias-carrying `union`/`intersection` nodes
|
|
240
|
+
* carry no provenance. Consumers must handle absence.
|
|
230
241
|
*
|
|
231
242
|
* **Member order and nested aliases**: union members follow the flat string's
|
|
232
243
|
* printed order — `null`/`undefined` sink last, and the checker's `origin`
|
|
@@ -340,7 +351,8 @@ export interface TupleElementJson {
|
|
|
340
351
|
name?: string;
|
|
341
352
|
/**
|
|
342
353
|
* The element's type. An optional element's type has the widening
|
|
343
|
-
* `undefined` stripped so `optional` carries it alone
|
|
354
|
+
* `undefined` stripped so `optional` carries it alone (the enclosing flat
|
|
355
|
+
* string keeps it — see the normalization policy); a rest element's is
|
|
344
356
|
* the array it collects (`...rest: boolean[]` carries an `array` node over
|
|
345
357
|
* `boolean`, matching the written form), while a variadic spread of an
|
|
346
358
|
* unresolved type (`...T`) carries the spread type itself.
|
|
@@ -360,9 +372,16 @@ export declare const TupleElementJson: z.ZodType<TupleElementJson, TupleElementJ
|
|
|
360
372
|
* Function parameters form a tuple with positional semantics:
|
|
361
373
|
* calling order matters (`fn(a, b)` vs `fn(b, a)`),
|
|
362
374
|
* may include rest parameters and destructuring patterns.
|
|
375
|
+
*
|
|
376
|
+
* Carries no doc fields beyond `description`, unlike `ComponentPropJson`: a
|
|
377
|
+
* parameter's docs come from one `@param` line, while a prop has a JSDoc block
|
|
378
|
+
* of its own.
|
|
363
379
|
*/
|
|
364
380
|
export declare const ParameterJson: z.ZodObject<{
|
|
365
|
-
/**
|
|
381
|
+
/**
|
|
382
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
383
|
+
* never the name.
|
|
384
|
+
*/
|
|
366
385
|
name: z.ZodString;
|
|
367
386
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
368
387
|
type: z.ZodString;
|
|
@@ -374,7 +393,11 @@ export declare const ParameterJson: z.ZodObject<{
|
|
|
374
393
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
375
394
|
/** Description from `@param` tag. */
|
|
376
395
|
description: z.ZodOptional<z.ZodString>;
|
|
377
|
-
/**
|
|
396
|
+
/**
|
|
397
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
398
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
399
|
+
* highlighted TS.
|
|
400
|
+
*/
|
|
378
401
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
379
402
|
/**
|
|
380
403
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -422,7 +445,11 @@ export declare const ComponentPropJson: z.ZodObject<{
|
|
|
422
445
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
423
446
|
/** Description from JSDoc on the prop's type declaration. */
|
|
424
447
|
description: z.ZodOptional<z.ZodString>;
|
|
425
|
-
/**
|
|
448
|
+
/**
|
|
449
|
+
* The destructuring default's source text, else the `@default` tag text —
|
|
450
|
+
* verbatim author text either way (`"'primary'"`, `() => 10`), quotes
|
|
451
|
+
* included, no normalization; consumers render it as highlighted TS.
|
|
452
|
+
*/
|
|
426
453
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
427
454
|
/** Whether the prop uses the `$bindable()` rune, enabling two-way binding. */
|
|
428
455
|
bindable: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -436,7 +463,10 @@ export declare const ComponentPropJson: z.ZodObject<{
|
|
|
436
463
|
* meaningful signal, not an empty list.
|
|
437
464
|
*/
|
|
438
465
|
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
439
|
-
/**
|
|
466
|
+
/**
|
|
467
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
468
|
+
* never the name.
|
|
469
|
+
*/
|
|
440
470
|
name: z.ZodString;
|
|
441
471
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
442
472
|
type: z.ZodString;
|
|
@@ -448,7 +478,11 @@ export declare const ComponentPropJson: z.ZodObject<{
|
|
|
448
478
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
449
479
|
/** Description from `@param` tag. */
|
|
450
480
|
description: z.ZodOptional<z.ZodString>;
|
|
451
|
-
/**
|
|
481
|
+
/**
|
|
482
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
483
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
484
|
+
* highlighted TS.
|
|
485
|
+
*/
|
|
452
486
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
453
487
|
/**
|
|
454
488
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -481,7 +515,10 @@ export declare const OverloadJson: z.ZodObject<{
|
|
|
481
515
|
typeSignature: z.ZodString;
|
|
482
516
|
/** Parameters for this overload. */
|
|
483
517
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
484
|
-
/**
|
|
518
|
+
/**
|
|
519
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
520
|
+
* never the name.
|
|
521
|
+
*/
|
|
485
522
|
name: z.ZodString;
|
|
486
523
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
487
524
|
type: z.ZodString;
|
|
@@ -493,7 +530,11 @@ export declare const OverloadJson: z.ZodObject<{
|
|
|
493
530
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
494
531
|
/** Description from `@param` tag. */
|
|
495
532
|
description: z.ZodOptional<z.ZodString>;
|
|
496
|
-
/**
|
|
533
|
+
/**
|
|
534
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
535
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
536
|
+
* highlighted TS.
|
|
537
|
+
*/
|
|
497
538
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
498
539
|
/**
|
|
499
540
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -539,8 +580,7 @@ export type OverloadJsonInput = z.input<typeof OverloadJson>;
|
|
|
539
580
|
* and properties/accessors (`'variable'`). Interface/type properties use the same kinds
|
|
540
581
|
* for property signatures, method signatures, index signatures, and call/construct signatures.
|
|
541
582
|
*
|
|
542
|
-
*
|
|
543
|
-
* appear as members — nesting is exactly one level deep.
|
|
583
|
+
* Every other `DeclarationKind` is top-level only; nesting is exactly one level deep.
|
|
544
584
|
*/
|
|
545
585
|
export declare const MemberKind: z.ZodEnum<{
|
|
546
586
|
function: "function";
|
|
@@ -553,9 +593,8 @@ export type MemberKind = z.infer<typeof MemberKind>;
|
|
|
553
593
|
* Has `parameters`, `returnType`, `returnDescription`, `overloads`.
|
|
554
594
|
*
|
|
555
595
|
* `optional` reflects a `?` token on the declaration (e.g., `foo?(): void`
|
|
556
|
-
* on an interface or type literal)
|
|
557
|
-
*
|
|
558
|
-
* classes).
|
|
596
|
+
* on an interface or type literal, or `m?(): void {}` on a class). Always
|
|
597
|
+
* `false` for index/call/construct signatures.
|
|
559
598
|
*
|
|
560
599
|
* `name` is the user-chosen method/property identifier, except for call
|
|
561
600
|
* signatures on interfaces and type aliases where it is the literal sentinel
|
|
@@ -573,15 +612,19 @@ export declare const FunctionMemberJson: z.ZodObject<{
|
|
|
573
612
|
/**
|
|
574
613
|
* Default value documented via `@default` — for a callable member,
|
|
575
614
|
* typically the behavior used when the callback is omitted. Always
|
|
576
|
-
* tag-authored (structural containers have no initializers)
|
|
577
|
-
* top-level function declarations and
|
|
615
|
+
* tag-authored (structural containers have no initializers), verbatim with
|
|
616
|
+
* no normalization. Members only: top-level function declarations and
|
|
617
|
+
* overloads never carry one.
|
|
578
618
|
*/
|
|
579
619
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
580
620
|
returnType: z.ZodOptional<z.ZodString>;
|
|
581
621
|
returnTypeInfo: z.ZodOptional<z.ZodType<TypeJson, TypeJson, z.core.$ZodTypeInternals<TypeJson, TypeJson>>>;
|
|
582
622
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
583
623
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
584
|
-
/**
|
|
624
|
+
/**
|
|
625
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
626
|
+
* never the name.
|
|
627
|
+
*/
|
|
585
628
|
name: z.ZodString;
|
|
586
629
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
587
630
|
type: z.ZodString;
|
|
@@ -593,7 +636,11 @@ export declare const FunctionMemberJson: z.ZodObject<{
|
|
|
593
636
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
594
637
|
/** Description from `@param` tag. */
|
|
595
638
|
description: z.ZodOptional<z.ZodString>;
|
|
596
|
-
/**
|
|
639
|
+
/**
|
|
640
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
641
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
642
|
+
* highlighted TS.
|
|
643
|
+
*/
|
|
597
644
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
598
645
|
/**
|
|
599
646
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -617,7 +664,10 @@ export declare const FunctionMemberJson: z.ZodObject<{
|
|
|
617
664
|
typeSignature: z.ZodString;
|
|
618
665
|
/** Parameters for this overload. */
|
|
619
666
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
620
|
-
/**
|
|
667
|
+
/**
|
|
668
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
669
|
+
* never the name.
|
|
670
|
+
*/
|
|
621
671
|
name: z.ZodString;
|
|
622
672
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
623
673
|
type: z.ZodString;
|
|
@@ -629,7 +679,11 @@ export declare const FunctionMemberJson: z.ZodObject<{
|
|
|
629
679
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
630
680
|
/** Description from `@param` tag. */
|
|
631
681
|
description: z.ZodOptional<z.ZodString>;
|
|
632
|
-
/**
|
|
682
|
+
/**
|
|
683
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
684
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
685
|
+
* highlighted TS.
|
|
686
|
+
*/
|
|
633
687
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
634
688
|
/**
|
|
635
689
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -718,7 +772,11 @@ export declare const VariableMemberJson: z.ZodObject<{
|
|
|
718
772
|
$derived: "$derived";
|
|
719
773
|
"$derived.by": "$derived.by";
|
|
720
774
|
}>>;
|
|
721
|
-
/**
|
|
775
|
+
/**
|
|
776
|
+
* Default value documented via `@default`, verbatim tag text with no
|
|
777
|
+
* normalization. Initializers aren't captured — a class field's
|
|
778
|
+
* `typeSignature` is its checker type, not its initializer.
|
|
779
|
+
*/
|
|
722
780
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
723
781
|
/**
|
|
724
782
|
* Structured type; absent when `typeSignature` is the whole story (see
|
|
@@ -779,7 +837,10 @@ export declare const ConstructorMemberJson: z.ZodObject<{
|
|
|
779
837
|
kind: z.ZodLiteral<"constructor">;
|
|
780
838
|
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
781
839
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
782
|
-
/**
|
|
840
|
+
/**
|
|
841
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
842
|
+
* never the name.
|
|
843
|
+
*/
|
|
783
844
|
name: z.ZodString;
|
|
784
845
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
785
846
|
type: z.ZodString;
|
|
@@ -791,7 +852,11 @@ export declare const ConstructorMemberJson: z.ZodObject<{
|
|
|
791
852
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
792
853
|
/** Description from `@param` tag. */
|
|
793
854
|
description: z.ZodOptional<z.ZodString>;
|
|
794
|
-
/**
|
|
855
|
+
/**
|
|
856
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
857
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
858
|
+
* highlighted TS.
|
|
859
|
+
*/
|
|
795
860
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
796
861
|
/**
|
|
797
862
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -815,7 +880,10 @@ export declare const ConstructorMemberJson: z.ZodObject<{
|
|
|
815
880
|
typeSignature: z.ZodString;
|
|
816
881
|
/** Parameters for this overload. */
|
|
817
882
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
818
|
-
/**
|
|
883
|
+
/**
|
|
884
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
885
|
+
* never the name.
|
|
886
|
+
*/
|
|
819
887
|
name: z.ZodString;
|
|
820
888
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
821
889
|
type: z.ZodString;
|
|
@@ -827,7 +895,11 @@ export declare const ConstructorMemberJson: z.ZodObject<{
|
|
|
827
895
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
828
896
|
/** Description from `@param` tag. */
|
|
829
897
|
description: z.ZodOptional<z.ZodString>;
|
|
830
|
-
/**
|
|
898
|
+
/**
|
|
899
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
900
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
901
|
+
* highlighted TS.
|
|
902
|
+
*/
|
|
831
903
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
832
904
|
/**
|
|
833
905
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -923,7 +995,10 @@ export declare const FunctionDeclarationJson: z.ZodObject<{
|
|
|
923
995
|
returnTypeInfo: z.ZodOptional<z.ZodType<TypeJson, TypeJson, z.core.$ZodTypeInternals<TypeJson, TypeJson>>>;
|
|
924
996
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
925
997
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
926
|
-
/**
|
|
998
|
+
/**
|
|
999
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
1000
|
+
* never the name.
|
|
1001
|
+
*/
|
|
927
1002
|
name: z.ZodString;
|
|
928
1003
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
929
1004
|
type: z.ZodString;
|
|
@@ -935,7 +1010,11 @@ export declare const FunctionDeclarationJson: z.ZodObject<{
|
|
|
935
1010
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
936
1011
|
/** Description from `@param` tag. */
|
|
937
1012
|
description: z.ZodOptional<z.ZodString>;
|
|
938
|
-
/**
|
|
1013
|
+
/**
|
|
1014
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
1015
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
1016
|
+
* highlighted TS.
|
|
1017
|
+
*/
|
|
939
1018
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
940
1019
|
/**
|
|
941
1020
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -959,7 +1038,10 @@ export declare const FunctionDeclarationJson: z.ZodObject<{
|
|
|
959
1038
|
typeSignature: z.ZodString;
|
|
960
1039
|
/** Parameters for this overload. */
|
|
961
1040
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
962
|
-
/**
|
|
1041
|
+
/**
|
|
1042
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
1043
|
+
* never the name.
|
|
1044
|
+
*/
|
|
963
1045
|
name: z.ZodString;
|
|
964
1046
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
965
1047
|
type: z.ZodString;
|
|
@@ -971,7 +1053,11 @@ export declare const FunctionDeclarationJson: z.ZodObject<{
|
|
|
971
1053
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
972
1054
|
/** Description from `@param` tag. */
|
|
973
1055
|
description: z.ZodOptional<z.ZodString>;
|
|
974
|
-
/**
|
|
1056
|
+
/**
|
|
1057
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
1058
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
1059
|
+
* highlighted TS.
|
|
1060
|
+
*/
|
|
975
1061
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
976
1062
|
/**
|
|
977
1063
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -1081,13 +1167,17 @@ export declare const ClassDeclarationJson: z.ZodObject<{
|
|
|
1081
1167
|
*
|
|
1082
1168
|
* Entry normalization (rename resolution, type-parameter substitution,
|
|
1083
1169
|
* text-dedupe, source order) matches `TypeDeclarationJson.externalTypes`.
|
|
1170
|
+
* A direct external base makes this textually equal to `extends`;
|
|
1171
|
+
* consumers dedupe at render time.
|
|
1084
1172
|
*/
|
|
1085
1173
|
externalTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1086
1174
|
/** Implemented interfaces. */
|
|
1087
1175
|
implements: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1088
1176
|
/**
|
|
1089
1177
|
* Class members: methods, properties, constructors, getters/setters — own
|
|
1090
|
-
* members only, inherited members excluded whatever their origin.
|
|
1178
|
+
* members only, inherited members excluded whatever their origin. Source
|
|
1179
|
+
* order, except accessors (getter/setter pairs merged by name), which follow
|
|
1180
|
+
* every other member.
|
|
1091
1181
|
*/
|
|
1092
1182
|
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1093
1183
|
kind: z.ZodLiteral<"function">;
|
|
@@ -1101,15 +1191,19 @@ export declare const ClassDeclarationJson: z.ZodObject<{
|
|
|
1101
1191
|
/**
|
|
1102
1192
|
* Default value documented via `@default` — for a callable member,
|
|
1103
1193
|
* typically the behavior used when the callback is omitted. Always
|
|
1104
|
-
* tag-authored (structural containers have no initializers)
|
|
1105
|
-
* top-level function declarations and
|
|
1194
|
+
* tag-authored (structural containers have no initializers), verbatim with
|
|
1195
|
+
* no normalization. Members only: top-level function declarations and
|
|
1196
|
+
* overloads never carry one.
|
|
1106
1197
|
*/
|
|
1107
1198
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1108
1199
|
returnType: z.ZodOptional<z.ZodString>;
|
|
1109
1200
|
returnTypeInfo: z.ZodOptional<z.ZodType<TypeJson, TypeJson, z.core.$ZodTypeInternals<TypeJson, TypeJson>>>;
|
|
1110
1201
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
1111
1202
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1112
|
-
/**
|
|
1203
|
+
/**
|
|
1204
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
1205
|
+
* never the name.
|
|
1206
|
+
*/
|
|
1113
1207
|
name: z.ZodString;
|
|
1114
1208
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1115
1209
|
type: z.ZodString;
|
|
@@ -1121,7 +1215,11 @@ export declare const ClassDeclarationJson: z.ZodObject<{
|
|
|
1121
1215
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1122
1216
|
/** Description from `@param` tag. */
|
|
1123
1217
|
description: z.ZodOptional<z.ZodString>;
|
|
1124
|
-
/**
|
|
1218
|
+
/**
|
|
1219
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
1220
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
1221
|
+
* highlighted TS.
|
|
1222
|
+
*/
|
|
1125
1223
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1126
1224
|
/**
|
|
1127
1225
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -1145,7 +1243,10 @@ export declare const ClassDeclarationJson: z.ZodObject<{
|
|
|
1145
1243
|
typeSignature: z.ZodString;
|
|
1146
1244
|
/** Parameters for this overload. */
|
|
1147
1245
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1148
|
-
/**
|
|
1246
|
+
/**
|
|
1247
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
1248
|
+
* never the name.
|
|
1249
|
+
*/
|
|
1149
1250
|
name: z.ZodString;
|
|
1150
1251
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1151
1252
|
type: z.ZodString;
|
|
@@ -1157,7 +1258,11 @@ export declare const ClassDeclarationJson: z.ZodObject<{
|
|
|
1157
1258
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1158
1259
|
/** Description from `@param` tag. */
|
|
1159
1260
|
description: z.ZodOptional<z.ZodString>;
|
|
1160
|
-
/**
|
|
1261
|
+
/**
|
|
1262
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
1263
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
1264
|
+
* highlighted TS.
|
|
1265
|
+
*/
|
|
1161
1266
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1162
1267
|
/**
|
|
1163
1268
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -1236,7 +1341,11 @@ export declare const ClassDeclarationJson: z.ZodObject<{
|
|
|
1236
1341
|
$derived: "$derived";
|
|
1237
1342
|
"$derived.by": "$derived.by";
|
|
1238
1343
|
}>>;
|
|
1239
|
-
/**
|
|
1344
|
+
/**
|
|
1345
|
+
* Default value documented via `@default`, verbatim tag text with no
|
|
1346
|
+
* normalization. Initializers aren't captured — a class field's
|
|
1347
|
+
* `typeSignature` is its checker type, not its initializer.
|
|
1348
|
+
*/
|
|
1240
1349
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1241
1350
|
/**
|
|
1242
1351
|
* Structured type; absent when `typeSignature` is the whole story (see
|
|
@@ -1282,7 +1391,10 @@ export declare const ClassDeclarationJson: z.ZodObject<{
|
|
|
1282
1391
|
kind: z.ZodLiteral<"constructor">;
|
|
1283
1392
|
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
1284
1393
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1285
|
-
/**
|
|
1394
|
+
/**
|
|
1395
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
1396
|
+
* never the name.
|
|
1397
|
+
*/
|
|
1286
1398
|
name: z.ZodString;
|
|
1287
1399
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1288
1400
|
type: z.ZodString;
|
|
@@ -1294,7 +1406,11 @@ export declare const ClassDeclarationJson: z.ZodObject<{
|
|
|
1294
1406
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1295
1407
|
/** Description from `@param` tag. */
|
|
1296
1408
|
description: z.ZodOptional<z.ZodString>;
|
|
1297
|
-
/**
|
|
1409
|
+
/**
|
|
1410
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
1411
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
1412
|
+
* highlighted TS.
|
|
1413
|
+
*/
|
|
1298
1414
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1299
1415
|
/**
|
|
1300
1416
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -1318,7 +1434,10 @@ export declare const ClassDeclarationJson: z.ZodObject<{
|
|
|
1318
1434
|
typeSignature: z.ZodString;
|
|
1319
1435
|
/** Parameters for this overload. */
|
|
1320
1436
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1321
|
-
/**
|
|
1437
|
+
/**
|
|
1438
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
1439
|
+
* never the name.
|
|
1440
|
+
*/
|
|
1322
1441
|
name: z.ZodString;
|
|
1323
1442
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1324
1443
|
type: z.ZodString;
|
|
@@ -1330,7 +1449,11 @@ export declare const ClassDeclarationJson: z.ZodObject<{
|
|
|
1330
1449
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1331
1450
|
/** Description from `@param` tag. */
|
|
1332
1451
|
description: z.ZodOptional<z.ZodString>;
|
|
1333
|
-
/**
|
|
1452
|
+
/**
|
|
1453
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
1454
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
1455
|
+
* highlighted TS.
|
|
1456
|
+
*/
|
|
1334
1457
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1335
1458
|
/**
|
|
1336
1459
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -1477,13 +1600,16 @@ export declare const InterfaceDeclarationJson: z.ZodObject<{
|
|
|
1477
1600
|
*
|
|
1478
1601
|
* Entry normalization (rename resolution, type-parameter substitution,
|
|
1479
1602
|
* text-dedupe, source order) matches `TypeDeclarationJson.externalTypes`.
|
|
1603
|
+
* Direct-heritage cases make this textually equal to `extends`; consumers
|
|
1604
|
+
* dedupe at render time.
|
|
1480
1605
|
*/
|
|
1481
1606
|
externalTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1482
1607
|
/**
|
|
1483
1608
|
* Interface members: property signatures, method signatures, index
|
|
1484
1609
|
* signatures, call/construct signatures — own members only, inherited
|
|
1485
1610
|
* members excluded whatever their origin (call/construct signatures
|
|
1486
|
-
* included: a base interface's `(call)` is not enumerated here).
|
|
1611
|
+
* included: a base interface's `(call)` is not enumerated here). Source
|
|
1612
|
+
* order, except call/construct signatures, which come last.
|
|
1487
1613
|
*/
|
|
1488
1614
|
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1489
1615
|
kind: z.ZodLiteral<"function">;
|
|
@@ -1497,15 +1623,19 @@ export declare const InterfaceDeclarationJson: z.ZodObject<{
|
|
|
1497
1623
|
/**
|
|
1498
1624
|
* Default value documented via `@default` — for a callable member,
|
|
1499
1625
|
* typically the behavior used when the callback is omitted. Always
|
|
1500
|
-
* tag-authored (structural containers have no initializers)
|
|
1501
|
-
* top-level function declarations and
|
|
1626
|
+
* tag-authored (structural containers have no initializers), verbatim with
|
|
1627
|
+
* no normalization. Members only: top-level function declarations and
|
|
1628
|
+
* overloads never carry one.
|
|
1502
1629
|
*/
|
|
1503
1630
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1504
1631
|
returnType: z.ZodOptional<z.ZodString>;
|
|
1505
1632
|
returnTypeInfo: z.ZodOptional<z.ZodType<TypeJson, TypeJson, z.core.$ZodTypeInternals<TypeJson, TypeJson>>>;
|
|
1506
1633
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
1507
1634
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1508
|
-
/**
|
|
1635
|
+
/**
|
|
1636
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
1637
|
+
* never the name.
|
|
1638
|
+
*/
|
|
1509
1639
|
name: z.ZodString;
|
|
1510
1640
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1511
1641
|
type: z.ZodString;
|
|
@@ -1517,7 +1647,11 @@ export declare const InterfaceDeclarationJson: z.ZodObject<{
|
|
|
1517
1647
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1518
1648
|
/** Description from `@param` tag. */
|
|
1519
1649
|
description: z.ZodOptional<z.ZodString>;
|
|
1520
|
-
/**
|
|
1650
|
+
/**
|
|
1651
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
1652
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
1653
|
+
* highlighted TS.
|
|
1654
|
+
*/
|
|
1521
1655
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1522
1656
|
/**
|
|
1523
1657
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -1541,7 +1675,10 @@ export declare const InterfaceDeclarationJson: z.ZodObject<{
|
|
|
1541
1675
|
typeSignature: z.ZodString;
|
|
1542
1676
|
/** Parameters for this overload. */
|
|
1543
1677
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1544
|
-
/**
|
|
1678
|
+
/**
|
|
1679
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
1680
|
+
* never the name.
|
|
1681
|
+
*/
|
|
1545
1682
|
name: z.ZodString;
|
|
1546
1683
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1547
1684
|
type: z.ZodString;
|
|
@@ -1553,7 +1690,11 @@ export declare const InterfaceDeclarationJson: z.ZodObject<{
|
|
|
1553
1690
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1554
1691
|
/** Description from `@param` tag. */
|
|
1555
1692
|
description: z.ZodOptional<z.ZodString>;
|
|
1556
|
-
/**
|
|
1693
|
+
/**
|
|
1694
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
1695
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
1696
|
+
* highlighted TS.
|
|
1697
|
+
*/
|
|
1557
1698
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1558
1699
|
/**
|
|
1559
1700
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -1632,7 +1773,11 @@ export declare const InterfaceDeclarationJson: z.ZodObject<{
|
|
|
1632
1773
|
$derived: "$derived";
|
|
1633
1774
|
"$derived.by": "$derived.by";
|
|
1634
1775
|
}>>;
|
|
1635
|
-
/**
|
|
1776
|
+
/**
|
|
1777
|
+
* Default value documented via `@default`, verbatim tag text with no
|
|
1778
|
+
* normalization. Initializers aren't captured — a class field's
|
|
1779
|
+
* `typeSignature` is its checker type, not its initializer.
|
|
1780
|
+
*/
|
|
1636
1781
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1637
1782
|
/**
|
|
1638
1783
|
* Structured type; absent when `typeSignature` is the whole story (see
|
|
@@ -1678,7 +1823,10 @@ export declare const InterfaceDeclarationJson: z.ZodObject<{
|
|
|
1678
1823
|
kind: z.ZodLiteral<"constructor">;
|
|
1679
1824
|
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
1680
1825
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1681
|
-
/**
|
|
1826
|
+
/**
|
|
1827
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
1828
|
+
* never the name.
|
|
1829
|
+
*/
|
|
1682
1830
|
name: z.ZodString;
|
|
1683
1831
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1684
1832
|
type: z.ZodString;
|
|
@@ -1690,7 +1838,11 @@ export declare const InterfaceDeclarationJson: z.ZodObject<{
|
|
|
1690
1838
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1691
1839
|
/** Description from `@param` tag. */
|
|
1692
1840
|
description: z.ZodOptional<z.ZodString>;
|
|
1693
|
-
/**
|
|
1841
|
+
/**
|
|
1842
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
1843
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
1844
|
+
* highlighted TS.
|
|
1845
|
+
*/
|
|
1694
1846
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1695
1847
|
/**
|
|
1696
1848
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -1714,7 +1866,10 @@ export declare const InterfaceDeclarationJson: z.ZodObject<{
|
|
|
1714
1866
|
typeSignature: z.ZodString;
|
|
1715
1867
|
/** Parameters for this overload. */
|
|
1716
1868
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1717
|
-
/**
|
|
1869
|
+
/**
|
|
1870
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
1871
|
+
* never the name.
|
|
1872
|
+
*/
|
|
1718
1873
|
name: z.ZodString;
|
|
1719
1874
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1720
1875
|
type: z.ZodString;
|
|
@@ -1726,7 +1881,11 @@ export declare const InterfaceDeclarationJson: z.ZodObject<{
|
|
|
1726
1881
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1727
1882
|
/** Description from `@param` tag. */
|
|
1728
1883
|
description: z.ZodOptional<z.ZodString>;
|
|
1729
|
-
/**
|
|
1884
|
+
/**
|
|
1885
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
1886
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
1887
|
+
* highlighted TS.
|
|
1888
|
+
*/
|
|
1730
1889
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1731
1890
|
/**
|
|
1732
1891
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -1900,8 +2059,8 @@ export declare const TypeDeclarationJson: z.ZodObject<{
|
|
|
1900
2059
|
*/
|
|
1901
2060
|
typeInfo: z.ZodOptional<z.ZodType<TypeJson, TypeJson, z.core.$ZodTypeInternals<TypeJson, TypeJson>>>;
|
|
1902
2061
|
/**
|
|
1903
|
-
* Type members: property
|
|
1904
|
-
* call
|
|
2062
|
+
* Type members: properties (property and method signatures) first, then
|
|
2063
|
+
* index signatures (string, number), then call and construct signatures.
|
|
1905
2064
|
*/
|
|
1906
2065
|
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1907
2066
|
kind: z.ZodLiteral<"function">;
|
|
@@ -1915,15 +2074,19 @@ export declare const TypeDeclarationJson: z.ZodObject<{
|
|
|
1915
2074
|
/**
|
|
1916
2075
|
* Default value documented via `@default` — for a callable member,
|
|
1917
2076
|
* typically the behavior used when the callback is omitted. Always
|
|
1918
|
-
* tag-authored (structural containers have no initializers)
|
|
1919
|
-
* top-level function declarations and
|
|
2077
|
+
* tag-authored (structural containers have no initializers), verbatim with
|
|
2078
|
+
* no normalization. Members only: top-level function declarations and
|
|
2079
|
+
* overloads never carry one.
|
|
1920
2080
|
*/
|
|
1921
2081
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1922
2082
|
returnType: z.ZodOptional<z.ZodString>;
|
|
1923
2083
|
returnTypeInfo: z.ZodOptional<z.ZodType<TypeJson, TypeJson, z.core.$ZodTypeInternals<TypeJson, TypeJson>>>;
|
|
1924
2084
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
1925
2085
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1926
|
-
/**
|
|
2086
|
+
/**
|
|
2087
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
2088
|
+
* never the name.
|
|
2089
|
+
*/
|
|
1927
2090
|
name: z.ZodString;
|
|
1928
2091
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1929
2092
|
type: z.ZodString;
|
|
@@ -1935,7 +2098,11 @@ export declare const TypeDeclarationJson: z.ZodObject<{
|
|
|
1935
2098
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1936
2099
|
/** Description from `@param` tag. */
|
|
1937
2100
|
description: z.ZodOptional<z.ZodString>;
|
|
1938
|
-
/**
|
|
2101
|
+
/**
|
|
2102
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
2103
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
2104
|
+
* highlighted TS.
|
|
2105
|
+
*/
|
|
1939
2106
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1940
2107
|
/**
|
|
1941
2108
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -1959,7 +2126,10 @@ export declare const TypeDeclarationJson: z.ZodObject<{
|
|
|
1959
2126
|
typeSignature: z.ZodString;
|
|
1960
2127
|
/** Parameters for this overload. */
|
|
1961
2128
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1962
|
-
/**
|
|
2129
|
+
/**
|
|
2130
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
2131
|
+
* never the name.
|
|
2132
|
+
*/
|
|
1963
2133
|
name: z.ZodString;
|
|
1964
2134
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1965
2135
|
type: z.ZodString;
|
|
@@ -1971,7 +2141,11 @@ export declare const TypeDeclarationJson: z.ZodObject<{
|
|
|
1971
2141
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1972
2142
|
/** Description from `@param` tag. */
|
|
1973
2143
|
description: z.ZodOptional<z.ZodString>;
|
|
1974
|
-
/**
|
|
2144
|
+
/**
|
|
2145
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
2146
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
2147
|
+
* highlighted TS.
|
|
2148
|
+
*/
|
|
1975
2149
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1976
2150
|
/**
|
|
1977
2151
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -2050,7 +2224,11 @@ export declare const TypeDeclarationJson: z.ZodObject<{
|
|
|
2050
2224
|
$derived: "$derived";
|
|
2051
2225
|
"$derived.by": "$derived.by";
|
|
2052
2226
|
}>>;
|
|
2053
|
-
/**
|
|
2227
|
+
/**
|
|
2228
|
+
* Default value documented via `@default`, verbatim tag text with no
|
|
2229
|
+
* normalization. Initializers aren't captured — a class field's
|
|
2230
|
+
* `typeSignature` is its checker type, not its initializer.
|
|
2231
|
+
*/
|
|
2054
2232
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2055
2233
|
/**
|
|
2056
2234
|
* Structured type; absent when `typeSignature` is the whole story (see
|
|
@@ -2096,7 +2274,10 @@ export declare const TypeDeclarationJson: z.ZodObject<{
|
|
|
2096
2274
|
kind: z.ZodLiteral<"constructor">;
|
|
2097
2275
|
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
2098
2276
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2099
|
-
/**
|
|
2277
|
+
/**
|
|
2278
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
2279
|
+
* never the name.
|
|
2280
|
+
*/
|
|
2100
2281
|
name: z.ZodString;
|
|
2101
2282
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2102
2283
|
type: z.ZodString;
|
|
@@ -2108,7 +2289,11 @@ export declare const TypeDeclarationJson: z.ZodObject<{
|
|
|
2108
2289
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2109
2290
|
/** Description from `@param` tag. */
|
|
2110
2291
|
description: z.ZodOptional<z.ZodString>;
|
|
2111
|
-
/**
|
|
2292
|
+
/**
|
|
2293
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
2294
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
2295
|
+
* highlighted TS.
|
|
2296
|
+
*/
|
|
2112
2297
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2113
2298
|
/**
|
|
2114
2299
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -2132,7 +2317,10 @@ export declare const TypeDeclarationJson: z.ZodObject<{
|
|
|
2132
2317
|
typeSignature: z.ZodString;
|
|
2133
2318
|
/** Parameters for this overload. */
|
|
2134
2319
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2135
|
-
/**
|
|
2320
|
+
/**
|
|
2321
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
2322
|
+
* never the name.
|
|
2323
|
+
*/
|
|
2136
2324
|
name: z.ZodString;
|
|
2137
2325
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2138
2326
|
type: z.ZodString;
|
|
@@ -2144,7 +2332,11 @@ export declare const TypeDeclarationJson: z.ZodObject<{
|
|
|
2144
2332
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2145
2333
|
/** Description from `@param` tag. */
|
|
2146
2334
|
description: z.ZodOptional<z.ZodString>;
|
|
2147
|
-
/**
|
|
2335
|
+
/**
|
|
2336
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
2337
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
2338
|
+
* highlighted TS.
|
|
2339
|
+
*/
|
|
2148
2340
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2149
2341
|
/**
|
|
2150
2342
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -2282,7 +2474,12 @@ export declare const VariableDeclarationJson: z.ZodObject<{
|
|
|
2282
2474
|
$derived: "$derived";
|
|
2283
2475
|
"$derived.by": "$derived.by";
|
|
2284
2476
|
}>>;
|
|
2285
|
-
/**
|
|
2477
|
+
/**
|
|
2478
|
+
* Default value documented via `@default`, verbatim tag text with no
|
|
2479
|
+
* normalization. Useful when the AST initializer is opaque (a call
|
|
2480
|
+
* expression, computed value) and the author wants to document the
|
|
2481
|
+
* conceptual default.
|
|
2482
|
+
*/
|
|
2286
2483
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2287
2484
|
/** Structured type; absent when `typeSignature` is the whole story (see `TypeJson`). */
|
|
2288
2485
|
typeInfo: z.ZodOptional<z.ZodType<TypeJson, TypeJson, z.core.$ZodTypeInternals<TypeJson, TypeJson>>>;
|
|
@@ -2347,15 +2544,19 @@ export declare const EnumDeclarationJson: z.ZodObject<{
|
|
|
2347
2544
|
/**
|
|
2348
2545
|
* Default value documented via `@default` — for a callable member,
|
|
2349
2546
|
* typically the behavior used when the callback is omitted. Always
|
|
2350
|
-
* tag-authored (structural containers have no initializers)
|
|
2351
|
-
* top-level function declarations and
|
|
2547
|
+
* tag-authored (structural containers have no initializers), verbatim with
|
|
2548
|
+
* no normalization. Members only: top-level function declarations and
|
|
2549
|
+
* overloads never carry one.
|
|
2352
2550
|
*/
|
|
2353
2551
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2354
2552
|
returnType: z.ZodOptional<z.ZodString>;
|
|
2355
2553
|
returnTypeInfo: z.ZodOptional<z.ZodType<TypeJson, TypeJson, z.core.$ZodTypeInternals<TypeJson, TypeJson>>>;
|
|
2356
2554
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
2357
2555
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2358
|
-
/**
|
|
2556
|
+
/**
|
|
2557
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
2558
|
+
* never the name.
|
|
2559
|
+
*/
|
|
2359
2560
|
name: z.ZodString;
|
|
2360
2561
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2361
2562
|
type: z.ZodString;
|
|
@@ -2367,7 +2568,11 @@ export declare const EnumDeclarationJson: z.ZodObject<{
|
|
|
2367
2568
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2368
2569
|
/** Description from `@param` tag. */
|
|
2369
2570
|
description: z.ZodOptional<z.ZodString>;
|
|
2370
|
-
/**
|
|
2571
|
+
/**
|
|
2572
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
2573
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
2574
|
+
* highlighted TS.
|
|
2575
|
+
*/
|
|
2371
2576
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2372
2577
|
/**
|
|
2373
2578
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -2391,7 +2596,10 @@ export declare const EnumDeclarationJson: z.ZodObject<{
|
|
|
2391
2596
|
typeSignature: z.ZodString;
|
|
2392
2597
|
/** Parameters for this overload. */
|
|
2393
2598
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2394
|
-
/**
|
|
2599
|
+
/**
|
|
2600
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
2601
|
+
* never the name.
|
|
2602
|
+
*/
|
|
2395
2603
|
name: z.ZodString;
|
|
2396
2604
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2397
2605
|
type: z.ZodString;
|
|
@@ -2403,7 +2611,11 @@ export declare const EnumDeclarationJson: z.ZodObject<{
|
|
|
2403
2611
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2404
2612
|
/** Description from `@param` tag. */
|
|
2405
2613
|
description: z.ZodOptional<z.ZodString>;
|
|
2406
|
-
/**
|
|
2614
|
+
/**
|
|
2615
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
2616
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
2617
|
+
* highlighted TS.
|
|
2618
|
+
*/
|
|
2407
2619
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2408
2620
|
/**
|
|
2409
2621
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -2482,7 +2694,11 @@ export declare const EnumDeclarationJson: z.ZodObject<{
|
|
|
2482
2694
|
$derived: "$derived";
|
|
2483
2695
|
"$derived.by": "$derived.by";
|
|
2484
2696
|
}>>;
|
|
2485
|
-
/**
|
|
2697
|
+
/**
|
|
2698
|
+
* Default value documented via `@default`, verbatim tag text with no
|
|
2699
|
+
* normalization. Initializers aren't captured — a class field's
|
|
2700
|
+
* `typeSignature` is its checker type, not its initializer.
|
|
2701
|
+
*/
|
|
2486
2702
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2487
2703
|
/**
|
|
2488
2704
|
* Structured type; absent when `typeSignature` is the whole story (see
|
|
@@ -2528,7 +2744,10 @@ export declare const EnumDeclarationJson: z.ZodObject<{
|
|
|
2528
2744
|
kind: z.ZodLiteral<"constructor">;
|
|
2529
2745
|
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
2530
2746
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2531
|
-
/**
|
|
2747
|
+
/**
|
|
2748
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
2749
|
+
* never the name.
|
|
2750
|
+
*/
|
|
2532
2751
|
name: z.ZodString;
|
|
2533
2752
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2534
2753
|
type: z.ZodString;
|
|
@@ -2540,7 +2759,11 @@ export declare const EnumDeclarationJson: z.ZodObject<{
|
|
|
2540
2759
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2541
2760
|
/** Description from `@param` tag. */
|
|
2542
2761
|
description: z.ZodOptional<z.ZodString>;
|
|
2543
|
-
/**
|
|
2762
|
+
/**
|
|
2763
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
2764
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
2765
|
+
* highlighted TS.
|
|
2766
|
+
*/
|
|
2544
2767
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2545
2768
|
/**
|
|
2546
2769
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -2564,7 +2787,10 @@ export declare const EnumDeclarationJson: z.ZodObject<{
|
|
|
2564
2787
|
typeSignature: z.ZodString;
|
|
2565
2788
|
/** Parameters for this overload. */
|
|
2566
2789
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2567
|
-
/**
|
|
2790
|
+
/**
|
|
2791
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
2792
|
+
* never the name.
|
|
2793
|
+
*/
|
|
2568
2794
|
name: z.ZodString;
|
|
2569
2795
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2570
2796
|
type: z.ZodString;
|
|
@@ -2576,7 +2802,11 @@ export declare const EnumDeclarationJson: z.ZodObject<{
|
|
|
2576
2802
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2577
2803
|
/** Description from `@param` tag. */
|
|
2578
2804
|
description: z.ZodOptional<z.ZodString>;
|
|
2579
|
-
/**
|
|
2805
|
+
/**
|
|
2806
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
2807
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
2808
|
+
* highlighted TS.
|
|
2809
|
+
*/
|
|
2580
2810
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2581
2811
|
/**
|
|
2582
2812
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -2718,7 +2948,9 @@ export declare const ComponentDeclarationJson: z.ZodObject<{
|
|
|
2718
2948
|
* interface itself. Field shapes mirror TS syntax.
|
|
2719
2949
|
*/
|
|
2720
2950
|
externalTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2721
|
-
/**
|
|
2951
|
+
/**
|
|
2952
|
+
* Svelte component props, in source order.
|
|
2953
|
+
*/
|
|
2722
2954
|
props: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2723
2955
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2724
2956
|
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -2738,7 +2970,11 @@ export declare const ComponentDeclarationJson: z.ZodObject<{
|
|
|
2738
2970
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2739
2971
|
/** Description from JSDoc on the prop's type declaration. */
|
|
2740
2972
|
description: z.ZodOptional<z.ZodString>;
|
|
2741
|
-
/**
|
|
2973
|
+
/**
|
|
2974
|
+
* The destructuring default's source text, else the `@default` tag text —
|
|
2975
|
+
* verbatim author text either way (`"'primary'"`, `() => 10`), quotes
|
|
2976
|
+
* included, no normalization; consumers render it as highlighted TS.
|
|
2977
|
+
*/
|
|
2742
2978
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2743
2979
|
/** Whether the prop uses the `$bindable()` rune, enabling two-way binding. */
|
|
2744
2980
|
bindable: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -2752,7 +2988,10 @@ export declare const ComponentDeclarationJson: z.ZodObject<{
|
|
|
2752
2988
|
* meaningful signal, not an empty list.
|
|
2753
2989
|
*/
|
|
2754
2990
|
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2755
|
-
/**
|
|
2991
|
+
/**
|
|
2992
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
2993
|
+
* never the name.
|
|
2994
|
+
*/
|
|
2756
2995
|
name: z.ZodString;
|
|
2757
2996
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2758
2997
|
type: z.ZodString;
|
|
@@ -2764,7 +3003,11 @@ export declare const ComponentDeclarationJson: z.ZodObject<{
|
|
|
2764
3003
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2765
3004
|
/** Description from `@param` tag. */
|
|
2766
3005
|
description: z.ZodOptional<z.ZodString>;
|
|
2767
|
-
/**
|
|
3006
|
+
/**
|
|
3007
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
3008
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
3009
|
+
* highlighted TS.
|
|
3010
|
+
*/
|
|
2768
3011
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2769
3012
|
/**
|
|
2770
3013
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -2840,7 +3083,10 @@ export declare const SnippetDeclarationJson: z.ZodObject<{
|
|
|
2840
3083
|
kind: z.ZodLiteral<"snippet">;
|
|
2841
3084
|
/** Snippet parameters. */
|
|
2842
3085
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2843
|
-
/**
|
|
3086
|
+
/**
|
|
3087
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
3088
|
+
* never the name.
|
|
3089
|
+
*/
|
|
2844
3090
|
name: z.ZodString;
|
|
2845
3091
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2846
3092
|
type: z.ZodString;
|
|
@@ -2852,7 +3098,11 @@ export declare const SnippetDeclarationJson: z.ZodObject<{
|
|
|
2852
3098
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2853
3099
|
/** Description from `@param` tag. */
|
|
2854
3100
|
description: z.ZodOptional<z.ZodString>;
|
|
2855
|
-
/**
|
|
3101
|
+
/**
|
|
3102
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
3103
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
3104
|
+
* highlighted TS.
|
|
3105
|
+
*/
|
|
2856
3106
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2857
3107
|
/**
|
|
2858
3108
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -3036,7 +3286,8 @@ export declare const ReExportJson: z.ZodObject<{
|
|
|
3036
3286
|
/**
|
|
3037
3287
|
* Whether the statement (`export type {A} from ...`) or specifier
|
|
3038
3288
|
* (`export {type A} from ...`) is type-only — the name is erased at
|
|
3039
|
-
* runtime and importable only via `import type`.
|
|
3289
|
+
* runtime and importable only via `import type`. A type-only *rename*
|
|
3290
|
+
* carries no such marker (see `aliasOf`).
|
|
3040
3291
|
*/
|
|
3041
3292
|
typeOnly: z.ZodDefault<z.ZodBoolean>;
|
|
3042
3293
|
/**
|
|
@@ -3049,9 +3300,11 @@ export declare const ReExportJson: z.ZodObject<{
|
|
|
3049
3300
|
export type ReExportJson = z.infer<typeof ReExportJson>;
|
|
3050
3301
|
export type ReExportJsonInput = z.input<typeof ReExportJson>;
|
|
3051
3302
|
/**
|
|
3052
|
-
* A re-export whose immediate target is
|
|
3303
|
+
* A re-export whose immediate target is an external package —
|
|
3053
3304
|
* `export {x} from 'pkg'`, `export {x as y} from 'pkg'`, or
|
|
3054
|
-
* `export * as ns from 'pkg'`.
|
|
3305
|
+
* `export * as ns from 'pkg'`. External is per `createIsExternalPath`; a
|
|
3306
|
+
* project-local target excluded from output (the `internal/` convention) is
|
|
3307
|
+
* not external, and its re-exports synthesize alias declarations instead.
|
|
3055
3308
|
*
|
|
3056
3309
|
* `specifier` is the module specifier as written (usually a package name);
|
|
3057
3310
|
* there is no canonical declaration to resolve, so these entries are flat
|
|
@@ -3060,8 +3313,9 @@ export type ReExportJsonInput = z.input<typeof ReExportJson>;
|
|
|
3060
3313
|
* Only statements that *directly* reference the external specifier are
|
|
3061
3314
|
* captured. Forms that stay silent: `import {x} from 'pkg'; export {x};`
|
|
3062
3315
|
* (import-then-export), re-export chains that reach a package through
|
|
3063
|
-
* another source module (that module owns the entry)
|
|
3064
|
-
* checker can't resolve.
|
|
3316
|
+
* another source module (that module owns the entry) or through a
|
|
3317
|
+
* project-local gated module, and specifiers the checker can't resolve.
|
|
3318
|
+
* Statement-level `@nodocs` suppresses the entry.
|
|
3065
3319
|
*/
|
|
3066
3320
|
export declare const ExternalReExportJson: z.ZodObject<{
|
|
3067
3321
|
/** Public exported name from this module. */
|
|
@@ -3084,7 +3338,8 @@ export type ExternalReExportJsonInput = z.input<typeof ExternalReExportJson>;
|
|
|
3084
3338
|
/**
|
|
3085
3339
|
* Metadata for a source module — the top-level container in the data model.
|
|
3086
3340
|
*
|
|
3087
|
-
* `analyze` and `
|
|
3341
|
+
* `analyze`, `analyzeFromFiles`, and `AnalysisSession.query` return `AnalyzeResultJson`,
|
|
3342
|
+
* whose `modules` is sorted by `path` (`compareStrings`).
|
|
3088
3343
|
* Each module contains its exported `declarations`, dependency graph, and optional `moduleComment`.
|
|
3089
3344
|
*/
|
|
3090
3345
|
export declare const ModuleJson: z.ZodObject<{
|
|
@@ -3103,7 +3358,10 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3103
3358
|
returnTypeInfo: z.ZodOptional<z.ZodType<TypeJson, TypeJson, z.core.$ZodTypeInternals<TypeJson, TypeJson>>>;
|
|
3104
3359
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
3105
3360
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3106
|
-
/**
|
|
3361
|
+
/**
|
|
3362
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
3363
|
+
* never the name.
|
|
3364
|
+
*/
|
|
3107
3365
|
name: z.ZodString;
|
|
3108
3366
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
3109
3367
|
type: z.ZodString;
|
|
@@ -3115,7 +3373,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3115
3373
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
3116
3374
|
/** Description from `@param` tag. */
|
|
3117
3375
|
description: z.ZodOptional<z.ZodString>;
|
|
3118
|
-
/**
|
|
3376
|
+
/**
|
|
3377
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
3378
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
3379
|
+
* highlighted TS.
|
|
3380
|
+
*/
|
|
3119
3381
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3120
3382
|
/**
|
|
3121
3383
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -3139,7 +3401,10 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3139
3401
|
typeSignature: z.ZodString;
|
|
3140
3402
|
/** Parameters for this overload. */
|
|
3141
3403
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3142
|
-
/**
|
|
3404
|
+
/**
|
|
3405
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
3406
|
+
* never the name.
|
|
3407
|
+
*/
|
|
3143
3408
|
name: z.ZodString;
|
|
3144
3409
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
3145
3410
|
type: z.ZodString;
|
|
@@ -3151,7 +3416,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3151
3416
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
3152
3417
|
/** Description from `@param` tag. */
|
|
3153
3418
|
description: z.ZodOptional<z.ZodString>;
|
|
3154
|
-
/**
|
|
3419
|
+
/**
|
|
3420
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
3421
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
3422
|
+
* highlighted TS.
|
|
3423
|
+
*/
|
|
3155
3424
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3156
3425
|
/**
|
|
3157
3426
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -3258,13 +3527,17 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3258
3527
|
*
|
|
3259
3528
|
* Entry normalization (rename resolution, type-parameter substitution,
|
|
3260
3529
|
* text-dedupe, source order) matches `TypeDeclarationJson.externalTypes`.
|
|
3530
|
+
* A direct external base makes this textually equal to `extends`;
|
|
3531
|
+
* consumers dedupe at render time.
|
|
3261
3532
|
*/
|
|
3262
3533
|
externalTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3263
3534
|
/** Implemented interfaces. */
|
|
3264
3535
|
implements: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3265
3536
|
/**
|
|
3266
3537
|
* Class members: methods, properties, constructors, getters/setters — own
|
|
3267
|
-
* members only, inherited members excluded whatever their origin.
|
|
3538
|
+
* members only, inherited members excluded whatever their origin. Source
|
|
3539
|
+
* order, except accessors (getter/setter pairs merged by name), which follow
|
|
3540
|
+
* every other member.
|
|
3268
3541
|
*/
|
|
3269
3542
|
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3270
3543
|
kind: z.ZodLiteral<"function">;
|
|
@@ -3278,15 +3551,19 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3278
3551
|
/**
|
|
3279
3552
|
* Default value documented via `@default` — for a callable member,
|
|
3280
3553
|
* typically the behavior used when the callback is omitted. Always
|
|
3281
|
-
* tag-authored (structural containers have no initializers)
|
|
3282
|
-
* top-level function declarations and
|
|
3554
|
+
* tag-authored (structural containers have no initializers), verbatim with
|
|
3555
|
+
* no normalization. Members only: top-level function declarations and
|
|
3556
|
+
* overloads never carry one.
|
|
3283
3557
|
*/
|
|
3284
3558
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3285
3559
|
returnType: z.ZodOptional<z.ZodString>;
|
|
3286
3560
|
returnTypeInfo: z.ZodOptional<z.ZodType<TypeJson, TypeJson, z.core.$ZodTypeInternals<TypeJson, TypeJson>>>;
|
|
3287
3561
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
3288
3562
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3289
|
-
/**
|
|
3563
|
+
/**
|
|
3564
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
3565
|
+
* never the name.
|
|
3566
|
+
*/
|
|
3290
3567
|
name: z.ZodString;
|
|
3291
3568
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
3292
3569
|
type: z.ZodString;
|
|
@@ -3298,7 +3575,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3298
3575
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
3299
3576
|
/** Description from `@param` tag. */
|
|
3300
3577
|
description: z.ZodOptional<z.ZodString>;
|
|
3301
|
-
/**
|
|
3578
|
+
/**
|
|
3579
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
3580
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
3581
|
+
* highlighted TS.
|
|
3582
|
+
*/
|
|
3302
3583
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3303
3584
|
/**
|
|
3304
3585
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -3322,7 +3603,10 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3322
3603
|
typeSignature: z.ZodString;
|
|
3323
3604
|
/** Parameters for this overload. */
|
|
3324
3605
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3325
|
-
/**
|
|
3606
|
+
/**
|
|
3607
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
3608
|
+
* never the name.
|
|
3609
|
+
*/
|
|
3326
3610
|
name: z.ZodString;
|
|
3327
3611
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
3328
3612
|
type: z.ZodString;
|
|
@@ -3334,7 +3618,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3334
3618
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
3335
3619
|
/** Description from `@param` tag. */
|
|
3336
3620
|
description: z.ZodOptional<z.ZodString>;
|
|
3337
|
-
/**
|
|
3621
|
+
/**
|
|
3622
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
3623
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
3624
|
+
* highlighted TS.
|
|
3625
|
+
*/
|
|
3338
3626
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3339
3627
|
/**
|
|
3340
3628
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -3413,7 +3701,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3413
3701
|
$derived: "$derived";
|
|
3414
3702
|
"$derived.by": "$derived.by";
|
|
3415
3703
|
}>>;
|
|
3416
|
-
/**
|
|
3704
|
+
/**
|
|
3705
|
+
* Default value documented via `@default`, verbatim tag text with no
|
|
3706
|
+
* normalization. Initializers aren't captured — a class field's
|
|
3707
|
+
* `typeSignature` is its checker type, not its initializer.
|
|
3708
|
+
*/
|
|
3417
3709
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3418
3710
|
/**
|
|
3419
3711
|
* Structured type; absent when `typeSignature` is the whole story (see
|
|
@@ -3459,7 +3751,10 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3459
3751
|
kind: z.ZodLiteral<"constructor">;
|
|
3460
3752
|
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
3461
3753
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3462
|
-
/**
|
|
3754
|
+
/**
|
|
3755
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
3756
|
+
* never the name.
|
|
3757
|
+
*/
|
|
3463
3758
|
name: z.ZodString;
|
|
3464
3759
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
3465
3760
|
type: z.ZodString;
|
|
@@ -3471,7 +3766,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3471
3766
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
3472
3767
|
/** Description from `@param` tag. */
|
|
3473
3768
|
description: z.ZodOptional<z.ZodString>;
|
|
3474
|
-
/**
|
|
3769
|
+
/**
|
|
3770
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
3771
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
3772
|
+
* highlighted TS.
|
|
3773
|
+
*/
|
|
3475
3774
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3476
3775
|
/**
|
|
3477
3776
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -3495,7 +3794,10 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3495
3794
|
typeSignature: z.ZodString;
|
|
3496
3795
|
/** Parameters for this overload. */
|
|
3497
3796
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3498
|
-
/**
|
|
3797
|
+
/**
|
|
3798
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
3799
|
+
* never the name.
|
|
3800
|
+
*/
|
|
3499
3801
|
name: z.ZodString;
|
|
3500
3802
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
3501
3803
|
type: z.ZodString;
|
|
@@ -3507,7 +3809,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3507
3809
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
3508
3810
|
/** Description from `@param` tag. */
|
|
3509
3811
|
description: z.ZodOptional<z.ZodString>;
|
|
3510
|
-
/**
|
|
3812
|
+
/**
|
|
3813
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
3814
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
3815
|
+
* highlighted TS.
|
|
3816
|
+
*/
|
|
3511
3817
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3512
3818
|
/**
|
|
3513
3819
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -3651,13 +3957,16 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3651
3957
|
*
|
|
3652
3958
|
* Entry normalization (rename resolution, type-parameter substitution,
|
|
3653
3959
|
* text-dedupe, source order) matches `TypeDeclarationJson.externalTypes`.
|
|
3960
|
+
* Direct-heritage cases make this textually equal to `extends`; consumers
|
|
3961
|
+
* dedupe at render time.
|
|
3654
3962
|
*/
|
|
3655
3963
|
externalTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3656
3964
|
/**
|
|
3657
3965
|
* Interface members: property signatures, method signatures, index
|
|
3658
3966
|
* signatures, call/construct signatures — own members only, inherited
|
|
3659
3967
|
* members excluded whatever their origin (call/construct signatures
|
|
3660
|
-
* included: a base interface's `(call)` is not enumerated here).
|
|
3968
|
+
* included: a base interface's `(call)` is not enumerated here). Source
|
|
3969
|
+
* order, except call/construct signatures, which come last.
|
|
3661
3970
|
*/
|
|
3662
3971
|
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3663
3972
|
kind: z.ZodLiteral<"function">;
|
|
@@ -3671,15 +3980,19 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3671
3980
|
/**
|
|
3672
3981
|
* Default value documented via `@default` — for a callable member,
|
|
3673
3982
|
* typically the behavior used when the callback is omitted. Always
|
|
3674
|
-
* tag-authored (structural containers have no initializers)
|
|
3675
|
-
* top-level function declarations and
|
|
3983
|
+
* tag-authored (structural containers have no initializers), verbatim with
|
|
3984
|
+
* no normalization. Members only: top-level function declarations and
|
|
3985
|
+
* overloads never carry one.
|
|
3676
3986
|
*/
|
|
3677
3987
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3678
3988
|
returnType: z.ZodOptional<z.ZodString>;
|
|
3679
3989
|
returnTypeInfo: z.ZodOptional<z.ZodType<TypeJson, TypeJson, z.core.$ZodTypeInternals<TypeJson, TypeJson>>>;
|
|
3680
3990
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
3681
3991
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3682
|
-
/**
|
|
3992
|
+
/**
|
|
3993
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
3994
|
+
* never the name.
|
|
3995
|
+
*/
|
|
3683
3996
|
name: z.ZodString;
|
|
3684
3997
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
3685
3998
|
type: z.ZodString;
|
|
@@ -3691,7 +4004,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3691
4004
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
3692
4005
|
/** Description from `@param` tag. */
|
|
3693
4006
|
description: z.ZodOptional<z.ZodString>;
|
|
3694
|
-
/**
|
|
4007
|
+
/**
|
|
4008
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
4009
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
4010
|
+
* highlighted TS.
|
|
4011
|
+
*/
|
|
3695
4012
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3696
4013
|
/**
|
|
3697
4014
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -3715,7 +4032,10 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3715
4032
|
typeSignature: z.ZodString;
|
|
3716
4033
|
/** Parameters for this overload. */
|
|
3717
4034
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3718
|
-
/**
|
|
4035
|
+
/**
|
|
4036
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
4037
|
+
* never the name.
|
|
4038
|
+
*/
|
|
3719
4039
|
name: z.ZodString;
|
|
3720
4040
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
3721
4041
|
type: z.ZodString;
|
|
@@ -3727,7 +4047,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3727
4047
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
3728
4048
|
/** Description from `@param` tag. */
|
|
3729
4049
|
description: z.ZodOptional<z.ZodString>;
|
|
3730
|
-
/**
|
|
4050
|
+
/**
|
|
4051
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
4052
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
4053
|
+
* highlighted TS.
|
|
4054
|
+
*/
|
|
3731
4055
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3732
4056
|
/**
|
|
3733
4057
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -3806,7 +4130,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3806
4130
|
$derived: "$derived";
|
|
3807
4131
|
"$derived.by": "$derived.by";
|
|
3808
4132
|
}>>;
|
|
3809
|
-
/**
|
|
4133
|
+
/**
|
|
4134
|
+
* Default value documented via `@default`, verbatim tag text with no
|
|
4135
|
+
* normalization. Initializers aren't captured — a class field's
|
|
4136
|
+
* `typeSignature` is its checker type, not its initializer.
|
|
4137
|
+
*/
|
|
3810
4138
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3811
4139
|
/**
|
|
3812
4140
|
* Structured type; absent when `typeSignature` is the whole story (see
|
|
@@ -3852,7 +4180,10 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3852
4180
|
kind: z.ZodLiteral<"constructor">;
|
|
3853
4181
|
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
3854
4182
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3855
|
-
/**
|
|
4183
|
+
/**
|
|
4184
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
4185
|
+
* never the name.
|
|
4186
|
+
*/
|
|
3856
4187
|
name: z.ZodString;
|
|
3857
4188
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
3858
4189
|
type: z.ZodString;
|
|
@@ -3864,7 +4195,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3864
4195
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
3865
4196
|
/** Description from `@param` tag. */
|
|
3866
4197
|
description: z.ZodOptional<z.ZodString>;
|
|
3867
|
-
/**
|
|
4198
|
+
/**
|
|
4199
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
4200
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
4201
|
+
* highlighted TS.
|
|
4202
|
+
*/
|
|
3868
4203
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3869
4204
|
/**
|
|
3870
4205
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -3888,7 +4223,10 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3888
4223
|
typeSignature: z.ZodString;
|
|
3889
4224
|
/** Parameters for this overload. */
|
|
3890
4225
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3891
|
-
/**
|
|
4226
|
+
/**
|
|
4227
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
4228
|
+
* never the name.
|
|
4229
|
+
*/
|
|
3892
4230
|
name: z.ZodString;
|
|
3893
4231
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
3894
4232
|
type: z.ZodString;
|
|
@@ -3900,7 +4238,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
3900
4238
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
3901
4239
|
/** Description from `@param` tag. */
|
|
3902
4240
|
description: z.ZodOptional<z.ZodString>;
|
|
3903
|
-
/**
|
|
4241
|
+
/**
|
|
4242
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
4243
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
4244
|
+
* highlighted TS.
|
|
4245
|
+
*/
|
|
3904
4246
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3905
4247
|
/**
|
|
3906
4248
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -4071,8 +4413,8 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4071
4413
|
*/
|
|
4072
4414
|
typeInfo: z.ZodOptional<z.ZodType<TypeJson, TypeJson, z.core.$ZodTypeInternals<TypeJson, TypeJson>>>;
|
|
4073
4415
|
/**
|
|
4074
|
-
* Type members: property
|
|
4075
|
-
* call
|
|
4416
|
+
* Type members: properties (property and method signatures) first, then
|
|
4417
|
+
* index signatures (string, number), then call and construct signatures.
|
|
4076
4418
|
*/
|
|
4077
4419
|
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4078
4420
|
kind: z.ZodLiteral<"function">;
|
|
@@ -4086,15 +4428,19 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4086
4428
|
/**
|
|
4087
4429
|
* Default value documented via `@default` — for a callable member,
|
|
4088
4430
|
* typically the behavior used when the callback is omitted. Always
|
|
4089
|
-
* tag-authored (structural containers have no initializers)
|
|
4090
|
-
* top-level function declarations and
|
|
4431
|
+
* tag-authored (structural containers have no initializers), verbatim with
|
|
4432
|
+
* no normalization. Members only: top-level function declarations and
|
|
4433
|
+
* overloads never carry one.
|
|
4091
4434
|
*/
|
|
4092
4435
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4093
4436
|
returnType: z.ZodOptional<z.ZodString>;
|
|
4094
4437
|
returnTypeInfo: z.ZodOptional<z.ZodType<TypeJson, TypeJson, z.core.$ZodTypeInternals<TypeJson, TypeJson>>>;
|
|
4095
4438
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
4096
4439
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4097
|
-
/**
|
|
4440
|
+
/**
|
|
4441
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
4442
|
+
* never the name.
|
|
4443
|
+
*/
|
|
4098
4444
|
name: z.ZodString;
|
|
4099
4445
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
4100
4446
|
type: z.ZodString;
|
|
@@ -4106,7 +4452,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4106
4452
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
4107
4453
|
/** Description from `@param` tag. */
|
|
4108
4454
|
description: z.ZodOptional<z.ZodString>;
|
|
4109
|
-
/**
|
|
4455
|
+
/**
|
|
4456
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
4457
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
4458
|
+
* highlighted TS.
|
|
4459
|
+
*/
|
|
4110
4460
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4111
4461
|
/**
|
|
4112
4462
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -4130,7 +4480,10 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4130
4480
|
typeSignature: z.ZodString;
|
|
4131
4481
|
/** Parameters for this overload. */
|
|
4132
4482
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4133
|
-
/**
|
|
4483
|
+
/**
|
|
4484
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
4485
|
+
* never the name.
|
|
4486
|
+
*/
|
|
4134
4487
|
name: z.ZodString;
|
|
4135
4488
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
4136
4489
|
type: z.ZodString;
|
|
@@ -4142,7 +4495,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4142
4495
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
4143
4496
|
/** Description from `@param` tag. */
|
|
4144
4497
|
description: z.ZodOptional<z.ZodString>;
|
|
4145
|
-
/**
|
|
4498
|
+
/**
|
|
4499
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
4500
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
4501
|
+
* highlighted TS.
|
|
4502
|
+
*/
|
|
4146
4503
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4147
4504
|
/**
|
|
4148
4505
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -4221,7 +4578,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4221
4578
|
$derived: "$derived";
|
|
4222
4579
|
"$derived.by": "$derived.by";
|
|
4223
4580
|
}>>;
|
|
4224
|
-
/**
|
|
4581
|
+
/**
|
|
4582
|
+
* Default value documented via `@default`, verbatim tag text with no
|
|
4583
|
+
* normalization. Initializers aren't captured — a class field's
|
|
4584
|
+
* `typeSignature` is its checker type, not its initializer.
|
|
4585
|
+
*/
|
|
4225
4586
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4226
4587
|
/**
|
|
4227
4588
|
* Structured type; absent when `typeSignature` is the whole story (see
|
|
@@ -4267,7 +4628,10 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4267
4628
|
kind: z.ZodLiteral<"constructor">;
|
|
4268
4629
|
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
4269
4630
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4270
|
-
/**
|
|
4631
|
+
/**
|
|
4632
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
4633
|
+
* never the name.
|
|
4634
|
+
*/
|
|
4271
4635
|
name: z.ZodString;
|
|
4272
4636
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
4273
4637
|
type: z.ZodString;
|
|
@@ -4279,7 +4643,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4279
4643
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
4280
4644
|
/** Description from `@param` tag. */
|
|
4281
4645
|
description: z.ZodOptional<z.ZodString>;
|
|
4282
|
-
/**
|
|
4646
|
+
/**
|
|
4647
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
4648
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
4649
|
+
* highlighted TS.
|
|
4650
|
+
*/
|
|
4283
4651
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4284
4652
|
/**
|
|
4285
4653
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -4303,7 +4671,10 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4303
4671
|
typeSignature: z.ZodString;
|
|
4304
4672
|
/** Parameters for this overload. */
|
|
4305
4673
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4306
|
-
/**
|
|
4674
|
+
/**
|
|
4675
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
4676
|
+
* never the name.
|
|
4677
|
+
*/
|
|
4307
4678
|
name: z.ZodString;
|
|
4308
4679
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
4309
4680
|
type: z.ZodString;
|
|
@@ -4315,7 +4686,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4315
4686
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
4316
4687
|
/** Description from `@param` tag. */
|
|
4317
4688
|
description: z.ZodOptional<z.ZodString>;
|
|
4318
|
-
/**
|
|
4689
|
+
/**
|
|
4690
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
4691
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
4692
|
+
* highlighted TS.
|
|
4693
|
+
*/
|
|
4319
4694
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4320
4695
|
/**
|
|
4321
4696
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -4447,7 +4822,12 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4447
4822
|
$derived: "$derived";
|
|
4448
4823
|
"$derived.by": "$derived.by";
|
|
4449
4824
|
}>>;
|
|
4450
|
-
/**
|
|
4825
|
+
/**
|
|
4826
|
+
* Default value documented via `@default`, verbatim tag text with no
|
|
4827
|
+
* normalization. Useful when the AST initializer is opaque (a call
|
|
4828
|
+
* expression, computed value) and the author wants to document the
|
|
4829
|
+
* conceptual default.
|
|
4830
|
+
*/
|
|
4451
4831
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4452
4832
|
/** Structured type; absent when `typeSignature` is the whole story (see `TypeJson`). */
|
|
4453
4833
|
typeInfo: z.ZodOptional<z.ZodType<TypeJson, TypeJson, z.core.$ZodTypeInternals<TypeJson, TypeJson>>>;
|
|
@@ -4509,15 +4889,19 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4509
4889
|
/**
|
|
4510
4890
|
* Default value documented via `@default` — for a callable member,
|
|
4511
4891
|
* typically the behavior used when the callback is omitted. Always
|
|
4512
|
-
* tag-authored (structural containers have no initializers)
|
|
4513
|
-
* top-level function declarations and
|
|
4892
|
+
* tag-authored (structural containers have no initializers), verbatim with
|
|
4893
|
+
* no normalization. Members only: top-level function declarations and
|
|
4894
|
+
* overloads never carry one.
|
|
4514
4895
|
*/
|
|
4515
4896
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4516
4897
|
returnType: z.ZodOptional<z.ZodString>;
|
|
4517
4898
|
returnTypeInfo: z.ZodOptional<z.ZodType<TypeJson, TypeJson, z.core.$ZodTypeInternals<TypeJson, TypeJson>>>;
|
|
4518
4899
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
4519
4900
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4520
|
-
/**
|
|
4901
|
+
/**
|
|
4902
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
4903
|
+
* never the name.
|
|
4904
|
+
*/
|
|
4521
4905
|
name: z.ZodString;
|
|
4522
4906
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
4523
4907
|
type: z.ZodString;
|
|
@@ -4529,7 +4913,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4529
4913
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
4530
4914
|
/** Description from `@param` tag. */
|
|
4531
4915
|
description: z.ZodOptional<z.ZodString>;
|
|
4532
|
-
/**
|
|
4916
|
+
/**
|
|
4917
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
4918
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
4919
|
+
* highlighted TS.
|
|
4920
|
+
*/
|
|
4533
4921
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4534
4922
|
/**
|
|
4535
4923
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -4553,7 +4941,10 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4553
4941
|
typeSignature: z.ZodString;
|
|
4554
4942
|
/** Parameters for this overload. */
|
|
4555
4943
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4556
|
-
/**
|
|
4944
|
+
/**
|
|
4945
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
4946
|
+
* never the name.
|
|
4947
|
+
*/
|
|
4557
4948
|
name: z.ZodString;
|
|
4558
4949
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
4559
4950
|
type: z.ZodString;
|
|
@@ -4565,7 +4956,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4565
4956
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
4566
4957
|
/** Description from `@param` tag. */
|
|
4567
4958
|
description: z.ZodOptional<z.ZodString>;
|
|
4568
|
-
/**
|
|
4959
|
+
/**
|
|
4960
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
4961
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
4962
|
+
* highlighted TS.
|
|
4963
|
+
*/
|
|
4569
4964
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4570
4965
|
/**
|
|
4571
4966
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -4644,7 +5039,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4644
5039
|
$derived: "$derived";
|
|
4645
5040
|
"$derived.by": "$derived.by";
|
|
4646
5041
|
}>>;
|
|
4647
|
-
/**
|
|
5042
|
+
/**
|
|
5043
|
+
* Default value documented via `@default`, verbatim tag text with no
|
|
5044
|
+
* normalization. Initializers aren't captured — a class field's
|
|
5045
|
+
* `typeSignature` is its checker type, not its initializer.
|
|
5046
|
+
*/
|
|
4648
5047
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4649
5048
|
/**
|
|
4650
5049
|
* Structured type; absent when `typeSignature` is the whole story (see
|
|
@@ -4690,7 +5089,10 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4690
5089
|
kind: z.ZodLiteral<"constructor">;
|
|
4691
5090
|
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
4692
5091
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4693
|
-
/**
|
|
5092
|
+
/**
|
|
5093
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
5094
|
+
* never the name.
|
|
5095
|
+
*/
|
|
4694
5096
|
name: z.ZodString;
|
|
4695
5097
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
4696
5098
|
type: z.ZodString;
|
|
@@ -4702,7 +5104,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4702
5104
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
4703
5105
|
/** Description from `@param` tag. */
|
|
4704
5106
|
description: z.ZodOptional<z.ZodString>;
|
|
4705
|
-
/**
|
|
5107
|
+
/**
|
|
5108
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
5109
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
5110
|
+
* highlighted TS.
|
|
5111
|
+
*/
|
|
4706
5112
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4707
5113
|
/**
|
|
4708
5114
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -4726,7 +5132,10 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4726
5132
|
typeSignature: z.ZodString;
|
|
4727
5133
|
/** Parameters for this overload. */
|
|
4728
5134
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4729
|
-
/**
|
|
5135
|
+
/**
|
|
5136
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
5137
|
+
* never the name.
|
|
5138
|
+
*/
|
|
4730
5139
|
name: z.ZodString;
|
|
4731
5140
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
4732
5141
|
type: z.ZodString;
|
|
@@ -4738,7 +5147,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4738
5147
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
4739
5148
|
/** Description from `@param` tag. */
|
|
4740
5149
|
description: z.ZodOptional<z.ZodString>;
|
|
4741
|
-
/**
|
|
5150
|
+
/**
|
|
5151
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
5152
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
5153
|
+
* highlighted TS.
|
|
5154
|
+
*/
|
|
4742
5155
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4743
5156
|
/**
|
|
4744
5157
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -4877,7 +5290,9 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4877
5290
|
* interface itself. Field shapes mirror TS syntax.
|
|
4878
5291
|
*/
|
|
4879
5292
|
externalTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4880
|
-
/**
|
|
5293
|
+
/**
|
|
5294
|
+
* Svelte component props, in source order.
|
|
5295
|
+
*/
|
|
4881
5296
|
props: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4882
5297
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4883
5298
|
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -4897,7 +5312,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4897
5312
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
4898
5313
|
/** Description from JSDoc on the prop's type declaration. */
|
|
4899
5314
|
description: z.ZodOptional<z.ZodString>;
|
|
4900
|
-
/**
|
|
5315
|
+
/**
|
|
5316
|
+
* The destructuring default's source text, else the `@default` tag text —
|
|
5317
|
+
* verbatim author text either way (`"'primary'"`, `() => 10`), quotes
|
|
5318
|
+
* included, no normalization; consumers render it as highlighted TS.
|
|
5319
|
+
*/
|
|
4901
5320
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4902
5321
|
/** Whether the prop uses the `$bindable()` rune, enabling two-way binding. */
|
|
4903
5322
|
bindable: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -4911,7 +5330,10 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4911
5330
|
* meaningful signal, not an empty list.
|
|
4912
5331
|
*/
|
|
4913
5332
|
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4914
|
-
/**
|
|
5333
|
+
/**
|
|
5334
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
5335
|
+
* never the name.
|
|
5336
|
+
*/
|
|
4915
5337
|
name: z.ZodString;
|
|
4916
5338
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
4917
5339
|
type: z.ZodString;
|
|
@@ -4923,7 +5345,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4923
5345
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
4924
5346
|
/** Description from `@param` tag. */
|
|
4925
5347
|
description: z.ZodOptional<z.ZodString>;
|
|
4926
|
-
/**
|
|
5348
|
+
/**
|
|
5349
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
5350
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
5351
|
+
* highlighted TS.
|
|
5352
|
+
*/
|
|
4927
5353
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4928
5354
|
/**
|
|
4929
5355
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -4996,7 +5422,10 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
4996
5422
|
kind: z.ZodLiteral<"snippet">;
|
|
4997
5423
|
/** Snippet parameters. */
|
|
4998
5424
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4999
|
-
/**
|
|
5425
|
+
/**
|
|
5426
|
+
* Parameter name (e.g., `options`, `args`); rest-ness is carried by `rest`,
|
|
5427
|
+
* never the name.
|
|
5428
|
+
*/
|
|
5000
5429
|
name: z.ZodString;
|
|
5001
5430
|
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
5002
5431
|
type: z.ZodString;
|
|
@@ -5008,7 +5437,11 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
5008
5437
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
5009
5438
|
/** Description from `@param` tag. */
|
|
5010
5439
|
description: z.ZodOptional<z.ZodString>;
|
|
5011
|
-
/**
|
|
5440
|
+
/**
|
|
5441
|
+
* The initializer's source text, verbatim (e.g., `"'hello'"`, `42`,
|
|
5442
|
+
* `() => 10`) — quotes included, no normalization; consumers render it as
|
|
5443
|
+
* highlighted TS.
|
|
5444
|
+
*/
|
|
5012
5445
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
5013
5446
|
/**
|
|
5014
5447
|
* Descriptions for properties of a named object parameter, from dotted
|
|
@@ -5127,7 +5560,9 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
5127
5560
|
/**
|
|
5128
5561
|
* Modules fully re-exported via `export * from './module'`.
|
|
5129
5562
|
* Paths are relative to `sourceRoot`. Statement-level `@nodocs`
|
|
5130
|
-
* suppresses the entry, like the other re-export encodings.
|
|
5563
|
+
* suppresses the entry, like the other re-export encodings. `export type *
|
|
5564
|
+
* from` is recorded like a value star — per-statement type-only-ness isn't
|
|
5565
|
+
* captured.
|
|
5131
5566
|
*/
|
|
5132
5567
|
starExports: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5133
5568
|
/**
|
|
@@ -5145,7 +5580,8 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
5145
5580
|
/**
|
|
5146
5581
|
* Whether the statement (`export type {A} from ...`) or specifier
|
|
5147
5582
|
* (`export {type A} from ...`) is type-only — the name is erased at
|
|
5148
|
-
* runtime and importable only via `import type`.
|
|
5583
|
+
* runtime and importable only via `import type`. A type-only *rename*
|
|
5584
|
+
* carries no such marker (see `aliasOf`).
|
|
5149
5585
|
*/
|
|
5150
5586
|
typeOnly: z.ZodDefault<z.ZodBoolean>;
|
|
5151
5587
|
/**
|
|
@@ -5189,8 +5625,8 @@ export declare const ModuleJson: z.ZodObject<{
|
|
|
5189
5625
|
* Currently only set for Svelte files where svelte2tsx threw at ingest
|
|
5190
5626
|
* (the `transform_failed` diagnostic carries the error). Placeholder
|
|
5191
5627
|
* modules have `declarations: []` and serve as a structural slot so the
|
|
5192
|
-
* `modules` array reflects the full
|
|
5193
|
-
* "broken" entries.
|
|
5628
|
+
* `modules` array reflects the full emitted (source-gated) set; consumers
|
|
5629
|
+
* render them as "broken" entries.
|
|
5194
5630
|
*/
|
|
5195
5631
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
5196
5632
|
}, z.core.$strict>;
|