svelte-docinfo 0.1.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/LICENSE +21 -0
- package/README.md +349 -0
- package/dist/analyze-core.d.ts +1386 -0
- package/dist/analyze-core.d.ts.map +1 -0
- package/dist/analyze-core.js +324 -0
- package/dist/analyze.d.ts +137 -0
- package/dist/analyze.d.ts.map +1 -0
- package/dist/analyze.js +148 -0
- package/dist/cli.d.ts +102 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +206 -0
- package/dist/concurrency.d.ts +38 -0
- package/dist/concurrency.d.ts.map +1 -0
- package/dist/concurrency.js +57 -0
- package/dist/declaration-build.d.ts +164 -0
- package/dist/declaration-build.d.ts.map +1 -0
- package/dist/declaration-build.js +15 -0
- package/dist/declaration-helpers.d.ts +169 -0
- package/dist/declaration-helpers.d.ts.map +1 -0
- package/dist/declaration-helpers.js +239 -0
- package/dist/dep-resolver.d.ts +166 -0
- package/dist/dep-resolver.d.ts.map +1 -0
- package/dist/dep-resolver.js +144 -0
- package/dist/diagnostics.d.ts +650 -0
- package/dist/diagnostics.d.ts.map +1 -0
- package/dist/diagnostics.js +377 -0
- package/dist/discovery.d.ts +115 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +126 -0
- package/dist/exports.d.ts +105 -0
- package/dist/exports.d.ts.map +1 -0
- package/dist/exports.js +274 -0
- package/dist/files.d.ts +77 -0
- package/dist/files.d.ts.map +1 -0
- package/dist/files.js +95 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/log.d.ts +32 -0
- package/dist/log.d.ts.map +1 -0
- package/dist/log.js +11 -0
- package/dist/logo.d.ts +8 -0
- package/dist/logo.d.ts.map +1 -0
- package/dist/logo.js +9 -0
- package/dist/main.d.ts +11 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +18 -0
- package/dist/paths.d.ts +35 -0
- package/dist/paths.d.ts.map +1 -0
- package/dist/paths.js +34 -0
- package/dist/postprocess.d.ts +145 -0
- package/dist/postprocess.d.ts.map +1 -0
- package/dist/postprocess.js +305 -0
- package/dist/session.d.ts +248 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/session.js +496 -0
- package/dist/source-config.d.ts +330 -0
- package/dist/source-config.d.ts.map +1 -0
- package/dist/source-config.js +356 -0
- package/dist/source.d.ts +126 -0
- package/dist/source.d.ts.map +1 -0
- package/dist/source.js +68 -0
- package/dist/svelte.d.ts +179 -0
- package/dist/svelte.d.ts.map +1 -0
- package/dist/svelte.js +898 -0
- package/dist/tsdoc.d.ts +145 -0
- package/dist/tsdoc.d.ts.map +1 -0
- package/dist/tsdoc.js +262 -0
- package/dist/types.d.ts +3381 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +588 -0
- package/dist/typescript-exports.d.ts +91 -0
- package/dist/typescript-exports.d.ts.map +1 -0
- package/dist/typescript-exports.js +656 -0
- package/dist/typescript-extract-class.d.ts +29 -0
- package/dist/typescript-extract-class.d.ts.map +1 -0
- package/dist/typescript-extract-class.js +251 -0
- package/dist/typescript-extract-function.d.ts +47 -0
- package/dist/typescript-extract-function.d.ts.map +1 -0
- package/dist/typescript-extract-function.js +108 -0
- package/dist/typescript-extract-shared.d.ts +166 -0
- package/dist/typescript-extract-shared.d.ts.map +1 -0
- package/dist/typescript-extract-shared.js +528 -0
- package/dist/typescript-extract-type-properties.d.ts +34 -0
- package/dist/typescript-extract-type-properties.d.ts.map +1 -0
- package/dist/typescript-extract-type-properties.js +241 -0
- package/dist/typescript-extract-type.d.ts +48 -0
- package/dist/typescript-extract-type.d.ts.map +1 -0
- package/dist/typescript-extract-type.js +238 -0
- package/dist/typescript-program.d.ts +211 -0
- package/dist/typescript-program.d.ts.map +1 -0
- package/dist/typescript-program.js +290 -0
- package/dist/vite.d.ts +116 -0
- package/dist/vite.d.ts.map +1 -0
- package/dist/vite.js +418 -0
- package/package.json +131 -0
- package/virtual-svelte-docinfo.d.ts +49 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,3381 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Metadata types for library source code analysis.
|
|
3
|
+
*
|
|
4
|
+
* These types represent the structure of `src/lib/` exports,
|
|
5
|
+
* extracted at build time via TypeScript compiler analysis.
|
|
6
|
+
* Used for generating API documentation and enabling code search.
|
|
7
|
+
*
|
|
8
|
+
* Hierarchy: `ModuleJson` → `DeclarationJson` (discriminated union on `kind`) → `MemberJson` (discriminated union on `kind`)
|
|
9
|
+
*
|
|
10
|
+
* ## Zod input/output split
|
|
11
|
+
*
|
|
12
|
+
* Array fields use `.default([])` so they're optional in serialized JSON (compact)
|
|
13
|
+
* but guaranteed `[]` at runtime after `.parse()`. Input types (`ModuleJsonInput`,
|
|
14
|
+
* `DeclarationJsonInput`, `ComponentPropJsonInput`) accept optional arrays;
|
|
15
|
+
* output types (`ModuleJson`, `DeclarationJson`, `ComponentPropJson`) guarantee arrays.
|
|
16
|
+
* Use `compactReplacer` (in `declaration-helpers.ts`) with `JSON.stringify` for compact output.
|
|
17
|
+
*
|
|
18
|
+
* ## Discriminated union
|
|
19
|
+
*
|
|
20
|
+
* `DeclarationJson` is a `z.discriminatedUnion` on `kind` with 9 variants:
|
|
21
|
+
* `FunctionDeclarationJson`, `ClassDeclarationJson`, `InterfaceDeclarationJson`,
|
|
22
|
+
* `TypeDeclarationJson`, `VariableDeclarationJson`, `EnumDeclarationJson`,
|
|
23
|
+
* `ComponentDeclarationJson`, `SnippetDeclarationJson`, `NamespaceDeclarationJson`.
|
|
24
|
+
* Each variant has only the fields relevant to that kind, enforced by
|
|
25
|
+
* `z.strictObject`. Use `isKind` (in `declaration-helpers.ts`) to narrow.
|
|
26
|
+
*
|
|
27
|
+
* `MemberJson` is similarly a `z.discriminatedUnion` on `kind` with 3 variants:
|
|
28
|
+
* `FunctionMemberJson`, `VariableMemberJson`, `ConstructorMemberJson`.
|
|
29
|
+
* Each variant has only the fields relevant to that member kind.
|
|
30
|
+
*
|
|
31
|
+
* Internal analysis code that constructs declarations incrementally uses
|
|
32
|
+
* `DeclarationJsonBuild` — a permissive interface with all fields optional.
|
|
33
|
+
* Zod validation at the `ModuleJson.parse()` boundary enforces variant correctness.
|
|
34
|
+
*
|
|
35
|
+
* @see `declaration-helpers.ts` for display formatting and type narrowing utilities
|
|
36
|
+
* @see `analyze.ts` for the main analysis entry points
|
|
37
|
+
* @see `tsdoc.ts` for JSDoc/TSDoc extraction into these types
|
|
38
|
+
* @see `postprocess.ts` for post-processing (`mergeReExports`, `findDuplicates`)
|
|
39
|
+
*
|
|
40
|
+
* @module
|
|
41
|
+
*/
|
|
42
|
+
import { z } from 'zod';
|
|
43
|
+
/**
|
|
44
|
+
* The kind of top-level exported declaration.
|
|
45
|
+
*
|
|
46
|
+
* Does not include `'constructor'` — constructors only appear as `MemberKind`
|
|
47
|
+
* (nested in classes, interfaces, or types with construct signatures), never as
|
|
48
|
+
* top-level module exports.
|
|
49
|
+
*/
|
|
50
|
+
export declare const DeclarationKind: z.ZodEnum<{
|
|
51
|
+
function: "function";
|
|
52
|
+
type: "type";
|
|
53
|
+
variable: "variable";
|
|
54
|
+
class: "class";
|
|
55
|
+
interface: "interface";
|
|
56
|
+
enum: "enum";
|
|
57
|
+
component: "component";
|
|
58
|
+
snippet: "snippet";
|
|
59
|
+
namespace: "namespace";
|
|
60
|
+
}>;
|
|
61
|
+
export type DeclarationKind = z.infer<typeof DeclarationKind>;
|
|
62
|
+
/**
|
|
63
|
+
* TypeScript modifier keywords extracted from declarations.
|
|
64
|
+
*
|
|
65
|
+
* Only modifiers that appear on public API members are included.
|
|
66
|
+
* Private members (including `#field` syntax) are filtered out during analysis.
|
|
67
|
+
* Protected members are included as part of the extension API.
|
|
68
|
+
*/
|
|
69
|
+
export declare const DeclarationModifier: z.ZodEnum<{
|
|
70
|
+
public: "public";
|
|
71
|
+
protected: "protected";
|
|
72
|
+
readonly: "readonly";
|
|
73
|
+
static: "static";
|
|
74
|
+
abstract: "abstract";
|
|
75
|
+
getter: "getter";
|
|
76
|
+
setter: "setter";
|
|
77
|
+
}>;
|
|
78
|
+
export type DeclarationModifier = z.infer<typeof DeclarationModifier>;
|
|
79
|
+
/**
|
|
80
|
+
* Reactivity flavor for a variable declaration or class field, captured from
|
|
81
|
+
* the rune call at the initializer (e.g., `let count = $state(0)`).
|
|
82
|
+
*
|
|
83
|
+
* Only the value-producing reactivity runes are represented here — `$props`
|
|
84
|
+
* and `$bindable` are modeled separately as `ComponentPropJson.bindable`
|
|
85
|
+
* (and prop-presence on the `props` array). A renderer wanting "all rune
|
|
86
|
+
* annotations across declarations and props" needs to read both this field
|
|
87
|
+
* and `ComponentPropJson.bindable`.
|
|
88
|
+
*
|
|
89
|
+
* - `$state` — deeply reactive proxy
|
|
90
|
+
* - `$state.raw` — reference-only reactive (no proxy)
|
|
91
|
+
* - `$derived` — recomputed from dependencies (re-assignable)
|
|
92
|
+
* - `$derived.by` — same as `$derived`, with a function argument
|
|
93
|
+
*
|
|
94
|
+
* Detection is syntactic (AST-based) and runs on every analyzed file
|
|
95
|
+
* regardless of extension. Most reactive declarations live in `.svelte`,
|
|
96
|
+
* `.svelte.ts`, or `.svelte.js`, but the field will also surface on any
|
|
97
|
+
* `.ts`/`.js` file that uses the same rune call patterns — by design, so
|
|
98
|
+
* documentation pipelines can capture any rune-shaped declaration their
|
|
99
|
+
* conventions choose to expose.
|
|
100
|
+
*/
|
|
101
|
+
export declare const Reactivity: z.ZodEnum<{
|
|
102
|
+
$state: "$state";
|
|
103
|
+
"$state.raw": "$state.raw";
|
|
104
|
+
$derived: "$derived";
|
|
105
|
+
"$derived.by": "$derived.by";
|
|
106
|
+
}>;
|
|
107
|
+
export type Reactivity = z.infer<typeof Reactivity>;
|
|
108
|
+
/**
|
|
109
|
+
* Generic type parameter metadata extracted from declarations like `<T extends string = unknown>`.
|
|
110
|
+
*
|
|
111
|
+
* Present on functions, classes, interfaces, type aliases, and Svelte components
|
|
112
|
+
* that declare generic type parameters.
|
|
113
|
+
*/
|
|
114
|
+
export declare const GenericParamJson: z.ZodObject<{
|
|
115
|
+
/** Parameter name like `T`. */
|
|
116
|
+
name: z.ZodString;
|
|
117
|
+
/** Constraint like `string` from `T extends string`. */
|
|
118
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
119
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
120
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
121
|
+
}, z.core.$strict>;
|
|
122
|
+
export type GenericParamJson = z.infer<typeof GenericParamJson>;
|
|
123
|
+
/**
|
|
124
|
+
* Parameter information for functions and methods.
|
|
125
|
+
*
|
|
126
|
+
* Kept distinct from `ComponentPropJson` despite structural similarity.
|
|
127
|
+
* Function parameters form a tuple with positional semantics:
|
|
128
|
+
* calling order matters (`fn(a, b)` vs `fn(b, a)`),
|
|
129
|
+
* may include rest parameters and destructuring patterns.
|
|
130
|
+
*/
|
|
131
|
+
export declare const ParameterJson: z.ZodObject<{
|
|
132
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
133
|
+
name: z.ZodString;
|
|
134
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
135
|
+
type: z.ZodString;
|
|
136
|
+
/** Whether the parameter has a `?` token. */
|
|
137
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
138
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
139
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
140
|
+
/** Description from `@param` tag. */
|
|
141
|
+
description: z.ZodOptional<z.ZodString>;
|
|
142
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
143
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
144
|
+
}, z.core.$strict>;
|
|
145
|
+
export type ParameterJson = z.infer<typeof ParameterJson>;
|
|
146
|
+
export type ParameterJsonInput = z.input<typeof ParameterJson>;
|
|
147
|
+
/**
|
|
148
|
+
* Component prop information for Svelte components.
|
|
149
|
+
*
|
|
150
|
+
* Standalone schema (not extending `ParameterJson`) because component props
|
|
151
|
+
* have different semantics: named attributes with no positional order
|
|
152
|
+
* (`<Foo {a} {b} />` = `<Foo {b} {a} />`), no rest parameters,
|
|
153
|
+
* and support for two-way binding via `$bindable` rune.
|
|
154
|
+
*/
|
|
155
|
+
export declare const ComponentPropJson: z.ZodObject<{
|
|
156
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
157
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
158
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
159
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
160
|
+
type: z.ZodOptional<z.ZodString>;
|
|
161
|
+
description: z.ZodString;
|
|
162
|
+
}, z.core.$strict>>>;
|
|
163
|
+
since: z.ZodOptional<z.ZodString>;
|
|
164
|
+
/** Prop name as declared in the component's `$props()` type. */
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
/** Resolved TypeScript type string. */
|
|
167
|
+
type: z.ZodString;
|
|
168
|
+
/** Whether the prop is optional in the component's props type. */
|
|
169
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
170
|
+
/** Description from JSDoc on the prop's type declaration. */
|
|
171
|
+
description: z.ZodOptional<z.ZodString>;
|
|
172
|
+
/** Default value expression from destructuring or `@default` tag. */
|
|
173
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
174
|
+
/** Whether the prop uses the `$bindable()` rune, enabling two-way binding. */
|
|
175
|
+
bindable: z.ZodDefault<z.ZodBoolean>;
|
|
176
|
+
/**
|
|
177
|
+
* Structured parameters for callable props (e.g., `Snippet<[text: string]>`).
|
|
178
|
+
*
|
|
179
|
+
* Present when the prop has extractable parameters, absent otherwise.
|
|
180
|
+
* Only populated when there are actual parameters — bare `Snippet` / `Snippet<[]>`
|
|
181
|
+
* does not set this field. Intentionally `.optional()` rather than
|
|
182
|
+
* `.default([])` (see the array-field policy note above): absence is a
|
|
183
|
+
* meaningful signal, not an empty list.
|
|
184
|
+
*/
|
|
185
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
186
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
187
|
+
name: z.ZodString;
|
|
188
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
189
|
+
type: z.ZodString;
|
|
190
|
+
/** Whether the parameter has a `?` token. */
|
|
191
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
192
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
193
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
194
|
+
/** Description from `@param` tag. */
|
|
195
|
+
description: z.ZodOptional<z.ZodString>;
|
|
196
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
197
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
198
|
+
}, z.core.$strict>>>;
|
|
199
|
+
}, z.core.$strict>;
|
|
200
|
+
export type ComponentPropJson = z.infer<typeof ComponentPropJson>;
|
|
201
|
+
export type ComponentPropJsonInput = z.input<typeof ComponentPropJson>;
|
|
202
|
+
/**
|
|
203
|
+
* A single function overload signature.
|
|
204
|
+
*
|
|
205
|
+
* When a function has multiple overload signatures, each public overload
|
|
206
|
+
* is captured here. The implementation signature is excluded.
|
|
207
|
+
*/
|
|
208
|
+
export declare const OverloadJson: z.ZodObject<{
|
|
209
|
+
/** Full TypeScript type signature for this overload. */
|
|
210
|
+
typeSignature: z.ZodString;
|
|
211
|
+
/** Parameters for this overload. */
|
|
212
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
213
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
214
|
+
name: z.ZodString;
|
|
215
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
216
|
+
type: z.ZodString;
|
|
217
|
+
/** Whether the parameter has a `?` token. */
|
|
218
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
219
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
220
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
221
|
+
/** Description from `@param` tag. */
|
|
222
|
+
description: z.ZodOptional<z.ZodString>;
|
|
223
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
224
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
225
|
+
}, z.core.$strict>>>;
|
|
226
|
+
/** Return type for this overload. */
|
|
227
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
228
|
+
/** Generic type parameters for this overload. */
|
|
229
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
230
|
+
/** Parameter name like `T`. */
|
|
231
|
+
name: z.ZodString;
|
|
232
|
+
/** Constraint like `string` from `T extends string`. */
|
|
233
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
234
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
235
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
236
|
+
}, z.core.$strict>>>;
|
|
237
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
238
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
239
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
240
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
241
|
+
}, z.core.$strict>;
|
|
242
|
+
export type OverloadJson = z.infer<typeof OverloadJson>;
|
|
243
|
+
export type OverloadJsonInput = z.input<typeof OverloadJson>;
|
|
244
|
+
/**
|
|
245
|
+
* The subset of declaration kinds that appear as nested members in classes, interfaces, and types.
|
|
246
|
+
*
|
|
247
|
+
* Class members include constructors (`'constructor'`), methods (`'function'`),
|
|
248
|
+
* and properties/accessors (`'variable'`). Interface/type properties use the same kinds
|
|
249
|
+
* for property signatures, method signatures, index signatures, and call/construct signatures.
|
|
250
|
+
*
|
|
251
|
+
* Top-level-only kinds (`'class'`, `'interface'`, `'type'`, `'enum'`, `'component'`) never
|
|
252
|
+
* appear as members — nesting is exactly one level deep.
|
|
253
|
+
*/
|
|
254
|
+
export declare const MemberKind: z.ZodEnum<{
|
|
255
|
+
function: "function";
|
|
256
|
+
variable: "variable";
|
|
257
|
+
constructor: "constructor";
|
|
258
|
+
}>;
|
|
259
|
+
export type MemberKind = z.infer<typeof MemberKind>;
|
|
260
|
+
/**
|
|
261
|
+
* A function member (method, call signature, method signature).
|
|
262
|
+
* Has `parameters`, `returnType`, `returnDescription`, `overloads`.
|
|
263
|
+
*
|
|
264
|
+
* `optional` reflects a `?` token on the declaration (e.g., `foo?(): void`
|
|
265
|
+
* on an interface or type literal). Always `false` for index/call/construct
|
|
266
|
+
* signatures and for class methods (TypeScript disallows optional methods on
|
|
267
|
+
* classes).
|
|
268
|
+
*
|
|
269
|
+
* `name` is the user-chosen method/property identifier, except for call
|
|
270
|
+
* signatures on interfaces and type aliases where it is the literal sentinel
|
|
271
|
+
* `'(call)'`.
|
|
272
|
+
*/
|
|
273
|
+
export declare const FunctionMemberJson: z.ZodObject<{
|
|
274
|
+
kind: z.ZodLiteral<"function">;
|
|
275
|
+
/**
|
|
276
|
+
* User-chosen identifier, or the literal `'(call)'` sentinel for
|
|
277
|
+
* unnamed call signatures.
|
|
278
|
+
*/
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
281
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
282
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
283
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
284
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
285
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
286
|
+
name: z.ZodString;
|
|
287
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
288
|
+
type: z.ZodString;
|
|
289
|
+
/** Whether the parameter has a `?` token. */
|
|
290
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
291
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
292
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
293
|
+
/** Description from `@param` tag. */
|
|
294
|
+
description: z.ZodOptional<z.ZodString>;
|
|
295
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
296
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
297
|
+
}, z.core.$strict>>>;
|
|
298
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
299
|
+
/** Full TypeScript type signature for this overload. */
|
|
300
|
+
typeSignature: z.ZodString;
|
|
301
|
+
/** Parameters for this overload. */
|
|
302
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
303
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
304
|
+
name: z.ZodString;
|
|
305
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
306
|
+
type: z.ZodString;
|
|
307
|
+
/** Whether the parameter has a `?` token. */
|
|
308
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
309
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
310
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
311
|
+
/** Description from `@param` tag. */
|
|
312
|
+
description: z.ZodOptional<z.ZodString>;
|
|
313
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
314
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
315
|
+
}, z.core.$strict>>>;
|
|
316
|
+
/** Return type for this overload. */
|
|
317
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
318
|
+
/** Generic type parameters for this overload. */
|
|
319
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
320
|
+
/** Parameter name like `T`. */
|
|
321
|
+
name: z.ZodString;
|
|
322
|
+
/** Constraint like `string` from `T extends string`. */
|
|
323
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
324
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
325
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
326
|
+
}, z.core.$strict>>>;
|
|
327
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
328
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
329
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
330
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
331
|
+
}, z.core.$strict>>>;
|
|
332
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
333
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
334
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
335
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
336
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
337
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
338
|
+
type: z.ZodOptional<z.ZodString>;
|
|
339
|
+
description: z.ZodString;
|
|
340
|
+
}, z.core.$strict>>>;
|
|
341
|
+
since: z.ZodOptional<z.ZodString>;
|
|
342
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
343
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
344
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
345
|
+
public: "public";
|
|
346
|
+
protected: "protected";
|
|
347
|
+
readonly: "readonly";
|
|
348
|
+
static: "static";
|
|
349
|
+
abstract: "abstract";
|
|
350
|
+
getter: "getter";
|
|
351
|
+
setter: "setter";
|
|
352
|
+
}>>>;
|
|
353
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
354
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
355
|
+
/** Parameter name like `T`. */
|
|
356
|
+
name: z.ZodString;
|
|
357
|
+
/** Constraint like `string` from `T extends string`. */
|
|
358
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
359
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
360
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
361
|
+
}, z.core.$strict>>>;
|
|
362
|
+
}, z.core.$strict>;
|
|
363
|
+
export type FunctionMemberJson = z.infer<typeof FunctionMemberJson>;
|
|
364
|
+
/**
|
|
365
|
+
* A variable member (property, accessor, index signature, enum value).
|
|
366
|
+
* Shared fields plus optional `reactivity` for class fields initialized with
|
|
367
|
+
* a Svelte rune (`$state`, `$state.raw`, `$derived`, `$derived.by`).
|
|
368
|
+
*
|
|
369
|
+
* `optional` reflects a `?` token on the declaration (e.g., `x?: string`).
|
|
370
|
+
* Always `false` for index signatures and enum values.
|
|
371
|
+
*/
|
|
372
|
+
export declare const VariableMemberJson: z.ZodObject<{
|
|
373
|
+
kind: z.ZodLiteral<"variable">;
|
|
374
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
375
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
376
|
+
/** Rune flavor when this field is initialized with a value-producing reactivity rune. */
|
|
377
|
+
reactivity: z.ZodOptional<z.ZodEnum<{
|
|
378
|
+
$state: "$state";
|
|
379
|
+
"$state.raw": "$state.raw";
|
|
380
|
+
$derived: "$derived";
|
|
381
|
+
"$derived.by": "$derived.by";
|
|
382
|
+
}>>;
|
|
383
|
+
/** Default value documented via `@default`. Authoritative initializer (when human-readable) is in `typeSignature`. */
|
|
384
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
385
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
386
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
387
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
388
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
389
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
390
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
391
|
+
type: z.ZodOptional<z.ZodString>;
|
|
392
|
+
description: z.ZodString;
|
|
393
|
+
}, z.core.$strict>>>;
|
|
394
|
+
since: z.ZodOptional<z.ZodString>;
|
|
395
|
+
name: z.ZodString;
|
|
396
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
397
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
398
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
399
|
+
public: "public";
|
|
400
|
+
protected: "protected";
|
|
401
|
+
readonly: "readonly";
|
|
402
|
+
static: "static";
|
|
403
|
+
abstract: "abstract";
|
|
404
|
+
getter: "getter";
|
|
405
|
+
setter: "setter";
|
|
406
|
+
}>>>;
|
|
407
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
408
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
409
|
+
/** Parameter name like `T`. */
|
|
410
|
+
name: z.ZodString;
|
|
411
|
+
/** Constraint like `string` from `T extends string`. */
|
|
412
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
413
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
414
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
415
|
+
}, z.core.$strict>>>;
|
|
416
|
+
}, z.core.$strict>;
|
|
417
|
+
export type VariableMemberJson = z.infer<typeof VariableMemberJson>;
|
|
418
|
+
/**
|
|
419
|
+
* A constructor member (class constructor, construct signature).
|
|
420
|
+
* Has `parameters`, `overloads` — but not `returnType`/`returnDescription`
|
|
421
|
+
* (constructors always return their class).
|
|
422
|
+
*
|
|
423
|
+
* `name` is narrowed to two literal sentinels: `'constructor'` for class
|
|
424
|
+
* constructors and `'(construct)'` for interface/type-alias construct
|
|
425
|
+
* signatures (which share `kind: 'constructor'` but originate from
|
|
426
|
+
* `getConstructSignatures()` on a non-class type — no user-chosen identifier
|
|
427
|
+
* exists). The literal is preserved (rather than omitted) so `getDisplayName`
|
|
428
|
+
* and consumer renderers reading `member.name` keep working without a
|
|
429
|
+
* constructor-specific branch.
|
|
430
|
+
*/
|
|
431
|
+
export declare const ConstructorMemberJson: z.ZodObject<{
|
|
432
|
+
kind: z.ZodLiteral<"constructor">;
|
|
433
|
+
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
434
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
435
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
436
|
+
name: z.ZodString;
|
|
437
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
438
|
+
type: z.ZodString;
|
|
439
|
+
/** Whether the parameter has a `?` token. */
|
|
440
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
441
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
442
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
443
|
+
/** Description from `@param` tag. */
|
|
444
|
+
description: z.ZodOptional<z.ZodString>;
|
|
445
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
446
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
447
|
+
}, z.core.$strict>>>;
|
|
448
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
449
|
+
/** Full TypeScript type signature for this overload. */
|
|
450
|
+
typeSignature: z.ZodString;
|
|
451
|
+
/** Parameters for this overload. */
|
|
452
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
453
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
454
|
+
name: z.ZodString;
|
|
455
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
456
|
+
type: z.ZodString;
|
|
457
|
+
/** Whether the parameter has a `?` token. */
|
|
458
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
459
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
460
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
461
|
+
/** Description from `@param` tag. */
|
|
462
|
+
description: z.ZodOptional<z.ZodString>;
|
|
463
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
464
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
465
|
+
}, z.core.$strict>>>;
|
|
466
|
+
/** Return type for this overload. */
|
|
467
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
468
|
+
/** Generic type parameters for this overload. */
|
|
469
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
470
|
+
/** Parameter name like `T`. */
|
|
471
|
+
name: z.ZodString;
|
|
472
|
+
/** Constraint like `string` from `T extends string`. */
|
|
473
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
474
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
475
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
476
|
+
}, z.core.$strict>>>;
|
|
477
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
478
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
479
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
480
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
481
|
+
}, z.core.$strict>>>;
|
|
482
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
483
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
484
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
485
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
486
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
487
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
488
|
+
type: z.ZodOptional<z.ZodString>;
|
|
489
|
+
description: z.ZodString;
|
|
490
|
+
}, z.core.$strict>>>;
|
|
491
|
+
since: z.ZodOptional<z.ZodString>;
|
|
492
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
493
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
494
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
495
|
+
public: "public";
|
|
496
|
+
protected: "protected";
|
|
497
|
+
readonly: "readonly";
|
|
498
|
+
static: "static";
|
|
499
|
+
abstract: "abstract";
|
|
500
|
+
getter: "getter";
|
|
501
|
+
setter: "setter";
|
|
502
|
+
}>>>;
|
|
503
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
504
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
505
|
+
/** Parameter name like `T`. */
|
|
506
|
+
name: z.ZodString;
|
|
507
|
+
/** Constraint like `string` from `T extends string`. */
|
|
508
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
509
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
510
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
511
|
+
}, z.core.$strict>>>;
|
|
512
|
+
}, z.core.$strict>;
|
|
513
|
+
export type ConstructorMemberJson = z.infer<typeof ConstructorMemberJson>;
|
|
514
|
+
/**
|
|
515
|
+
* Metadata for a nested declaration within a class, interface, type, or enum.
|
|
516
|
+
*
|
|
517
|
+
* Discriminated union on `kind` with 3 variants: `FunctionMemberJson`,
|
|
518
|
+
* `VariableMemberJson`, `ConstructorMemberJson`. Use `isKind` (in
|
|
519
|
+
* `declaration-helpers.ts`) to narrow, or check `member.kind` directly.
|
|
520
|
+
*
|
|
521
|
+
* Does not include fields that exist on declarations but not on members
|
|
522
|
+
* (`extends`, `intersects`, `implements`, `props`, `alsoExportedFrom`, `aliasOf`).
|
|
523
|
+
*
|
|
524
|
+
* Nesting is exactly one level deep — members never contain their own members.
|
|
525
|
+
*/
|
|
526
|
+
export declare const MemberJson: z.ZodDiscriminatedUnion<[
|
|
527
|
+
typeof FunctionMemberJson,
|
|
528
|
+
typeof VariableMemberJson,
|
|
529
|
+
typeof ConstructorMemberJson
|
|
530
|
+
], 'kind'>;
|
|
531
|
+
export type MemberJson = z.infer<typeof MemberJson>;
|
|
532
|
+
export type MemberJsonInput = z.input<typeof MemberJson>;
|
|
533
|
+
/** A function declaration. Has `parameters`, `returnType`, `returnDescription`, `overloads`. */
|
|
534
|
+
export declare const FunctionDeclarationJson: z.ZodObject<{
|
|
535
|
+
kind: z.ZodLiteral<"function">;
|
|
536
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
537
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
538
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
539
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
540
|
+
name: z.ZodString;
|
|
541
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
542
|
+
type: z.ZodString;
|
|
543
|
+
/** Whether the parameter has a `?` token. */
|
|
544
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
545
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
546
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
547
|
+
/** Description from `@param` tag. */
|
|
548
|
+
description: z.ZodOptional<z.ZodString>;
|
|
549
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
550
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
551
|
+
}, z.core.$strict>>>;
|
|
552
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
553
|
+
/** Full TypeScript type signature for this overload. */
|
|
554
|
+
typeSignature: z.ZodString;
|
|
555
|
+
/** Parameters for this overload. */
|
|
556
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
557
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
558
|
+
name: z.ZodString;
|
|
559
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
560
|
+
type: z.ZodString;
|
|
561
|
+
/** Whether the parameter has a `?` token. */
|
|
562
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
563
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
564
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
565
|
+
/** Description from `@param` tag. */
|
|
566
|
+
description: z.ZodOptional<z.ZodString>;
|
|
567
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
568
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
569
|
+
}, z.core.$strict>>>;
|
|
570
|
+
/** Return type for this overload. */
|
|
571
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
572
|
+
/** Generic type parameters for this overload. */
|
|
573
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
574
|
+
/** Parameter name like `T`. */
|
|
575
|
+
name: z.ZodString;
|
|
576
|
+
/** Constraint like `string` from `T extends string`. */
|
|
577
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
578
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
579
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
580
|
+
}, z.core.$strict>>>;
|
|
581
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
582
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
583
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
584
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
585
|
+
}, z.core.$strict>>>;
|
|
586
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
587
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
588
|
+
module: z.ZodString;
|
|
589
|
+
name: z.ZodString;
|
|
590
|
+
}, z.core.$strict>>;
|
|
591
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
592
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
593
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
594
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
595
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
596
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
597
|
+
type: z.ZodOptional<z.ZodString>;
|
|
598
|
+
description: z.ZodString;
|
|
599
|
+
}, z.core.$strict>>>;
|
|
600
|
+
since: z.ZodOptional<z.ZodString>;
|
|
601
|
+
name: z.ZodString;
|
|
602
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
603
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
604
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
605
|
+
public: "public";
|
|
606
|
+
protected: "protected";
|
|
607
|
+
readonly: "readonly";
|
|
608
|
+
static: "static";
|
|
609
|
+
abstract: "abstract";
|
|
610
|
+
getter: "getter";
|
|
611
|
+
setter: "setter";
|
|
612
|
+
}>>>;
|
|
613
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
614
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
615
|
+
/** Parameter name like `T`. */
|
|
616
|
+
name: z.ZodString;
|
|
617
|
+
/** Constraint like `string` from `T extends string`. */
|
|
618
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
619
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
620
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
621
|
+
}, z.core.$strict>>>;
|
|
622
|
+
}, z.core.$strict>;
|
|
623
|
+
export type FunctionDeclarationJson = z.infer<typeof FunctionDeclarationJson>;
|
|
624
|
+
/** A class declaration. Has `members`, `extends`, `implements`. */
|
|
625
|
+
export declare const ClassDeclarationJson: z.ZodObject<{
|
|
626
|
+
kind: z.ZodLiteral<"class">;
|
|
627
|
+
/**
|
|
628
|
+
* Extended base class (single; TypeScript allows only one).
|
|
629
|
+
*
|
|
630
|
+
* @see `implements` (this variant), `InterfaceDeclarationJson.extends`,
|
|
631
|
+
* `TypeDeclarationJson.intersects`, `ComponentDeclarationJson.intersects`
|
|
632
|
+
* for sibling "related type identifiers" fields. Field shapes mirror TS syntax.
|
|
633
|
+
*/
|
|
634
|
+
extends: z.ZodOptional<z.ZodString>;
|
|
635
|
+
/** Implemented interfaces. */
|
|
636
|
+
implements: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
637
|
+
/**
|
|
638
|
+
* Class members: methods, properties, constructors, getters/setters.
|
|
639
|
+
*/
|
|
640
|
+
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
641
|
+
kind: z.ZodLiteral<"function">;
|
|
642
|
+
/**
|
|
643
|
+
* User-chosen identifier, or the literal `'(call)'` sentinel for
|
|
644
|
+
* unnamed call signatures.
|
|
645
|
+
*/
|
|
646
|
+
name: z.ZodString;
|
|
647
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
648
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
649
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
650
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
651
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
652
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
653
|
+
name: z.ZodString;
|
|
654
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
655
|
+
type: z.ZodString;
|
|
656
|
+
/** Whether the parameter has a `?` token. */
|
|
657
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
658
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
659
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
660
|
+
/** Description from `@param` tag. */
|
|
661
|
+
description: z.ZodOptional<z.ZodString>;
|
|
662
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
663
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
664
|
+
}, z.core.$strict>>>;
|
|
665
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
666
|
+
/** Full TypeScript type signature for this overload. */
|
|
667
|
+
typeSignature: z.ZodString;
|
|
668
|
+
/** Parameters for this overload. */
|
|
669
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
670
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
671
|
+
name: z.ZodString;
|
|
672
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
673
|
+
type: z.ZodString;
|
|
674
|
+
/** Whether the parameter has a `?` token. */
|
|
675
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
676
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
677
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
678
|
+
/** Description from `@param` tag. */
|
|
679
|
+
description: z.ZodOptional<z.ZodString>;
|
|
680
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
681
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
682
|
+
}, z.core.$strict>>>;
|
|
683
|
+
/** Return type for this overload. */
|
|
684
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
685
|
+
/** Generic type parameters for this overload. */
|
|
686
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
687
|
+
/** Parameter name like `T`. */
|
|
688
|
+
name: z.ZodString;
|
|
689
|
+
/** Constraint like `string` from `T extends string`. */
|
|
690
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
691
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
692
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
693
|
+
}, z.core.$strict>>>;
|
|
694
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
695
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
696
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
697
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
698
|
+
}, z.core.$strict>>>;
|
|
699
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
700
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
701
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
702
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
703
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
704
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
705
|
+
type: z.ZodOptional<z.ZodString>;
|
|
706
|
+
description: z.ZodString;
|
|
707
|
+
}, z.core.$strict>>>;
|
|
708
|
+
since: z.ZodOptional<z.ZodString>;
|
|
709
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
710
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
711
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
712
|
+
public: "public";
|
|
713
|
+
protected: "protected";
|
|
714
|
+
readonly: "readonly";
|
|
715
|
+
static: "static";
|
|
716
|
+
abstract: "abstract";
|
|
717
|
+
getter: "getter";
|
|
718
|
+
setter: "setter";
|
|
719
|
+
}>>>;
|
|
720
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
721
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
722
|
+
/** Parameter name like `T`. */
|
|
723
|
+
name: z.ZodString;
|
|
724
|
+
/** Constraint like `string` from `T extends string`. */
|
|
725
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
726
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
727
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
728
|
+
}, z.core.$strict>>>;
|
|
729
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
730
|
+
kind: z.ZodLiteral<"variable">;
|
|
731
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
732
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
733
|
+
/** Rune flavor when this field is initialized with a value-producing reactivity rune. */
|
|
734
|
+
reactivity: z.ZodOptional<z.ZodEnum<{
|
|
735
|
+
$state: "$state";
|
|
736
|
+
"$state.raw": "$state.raw";
|
|
737
|
+
$derived: "$derived";
|
|
738
|
+
"$derived.by": "$derived.by";
|
|
739
|
+
}>>;
|
|
740
|
+
/** Default value documented via `@default`. Authoritative initializer (when human-readable) is in `typeSignature`. */
|
|
741
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
742
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
743
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
744
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
745
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
746
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
747
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
748
|
+
type: z.ZodOptional<z.ZodString>;
|
|
749
|
+
description: z.ZodString;
|
|
750
|
+
}, z.core.$strict>>>;
|
|
751
|
+
since: z.ZodOptional<z.ZodString>;
|
|
752
|
+
name: z.ZodString;
|
|
753
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
754
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
755
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
756
|
+
public: "public";
|
|
757
|
+
protected: "protected";
|
|
758
|
+
readonly: "readonly";
|
|
759
|
+
static: "static";
|
|
760
|
+
abstract: "abstract";
|
|
761
|
+
getter: "getter";
|
|
762
|
+
setter: "setter";
|
|
763
|
+
}>>>;
|
|
764
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
765
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
766
|
+
/** Parameter name like `T`. */
|
|
767
|
+
name: z.ZodString;
|
|
768
|
+
/** Constraint like `string` from `T extends string`. */
|
|
769
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
770
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
771
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
772
|
+
}, z.core.$strict>>>;
|
|
773
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
774
|
+
kind: z.ZodLiteral<"constructor">;
|
|
775
|
+
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
776
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
777
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
778
|
+
name: z.ZodString;
|
|
779
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
780
|
+
type: z.ZodString;
|
|
781
|
+
/** Whether the parameter has a `?` token. */
|
|
782
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
783
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
784
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
785
|
+
/** Description from `@param` tag. */
|
|
786
|
+
description: z.ZodOptional<z.ZodString>;
|
|
787
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
788
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
789
|
+
}, z.core.$strict>>>;
|
|
790
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
791
|
+
/** Full TypeScript type signature for this overload. */
|
|
792
|
+
typeSignature: z.ZodString;
|
|
793
|
+
/** Parameters for this overload. */
|
|
794
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
795
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
796
|
+
name: z.ZodString;
|
|
797
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
798
|
+
type: z.ZodString;
|
|
799
|
+
/** Whether the parameter has a `?` token. */
|
|
800
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
801
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
802
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
803
|
+
/** Description from `@param` tag. */
|
|
804
|
+
description: z.ZodOptional<z.ZodString>;
|
|
805
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
806
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
807
|
+
}, z.core.$strict>>>;
|
|
808
|
+
/** Return type for this overload. */
|
|
809
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
810
|
+
/** Generic type parameters for this overload. */
|
|
811
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
812
|
+
/** Parameter name like `T`. */
|
|
813
|
+
name: z.ZodString;
|
|
814
|
+
/** Constraint like `string` from `T extends string`. */
|
|
815
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
816
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
817
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
818
|
+
}, z.core.$strict>>>;
|
|
819
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
820
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
821
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
822
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
823
|
+
}, z.core.$strict>>>;
|
|
824
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
825
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
826
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
827
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
828
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
829
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
830
|
+
type: z.ZodOptional<z.ZodString>;
|
|
831
|
+
description: z.ZodString;
|
|
832
|
+
}, z.core.$strict>>>;
|
|
833
|
+
since: z.ZodOptional<z.ZodString>;
|
|
834
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
835
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
836
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
837
|
+
public: "public";
|
|
838
|
+
protected: "protected";
|
|
839
|
+
readonly: "readonly";
|
|
840
|
+
static: "static";
|
|
841
|
+
abstract: "abstract";
|
|
842
|
+
getter: "getter";
|
|
843
|
+
setter: "setter";
|
|
844
|
+
}>>>;
|
|
845
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
846
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
847
|
+
/** Parameter name like `T`. */
|
|
848
|
+
name: z.ZodString;
|
|
849
|
+
/** Constraint like `string` from `T extends string`. */
|
|
850
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
851
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
852
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
853
|
+
}, z.core.$strict>>>;
|
|
854
|
+
}, z.core.$strict>], "kind">>>;
|
|
855
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
856
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
857
|
+
module: z.ZodString;
|
|
858
|
+
name: z.ZodString;
|
|
859
|
+
}, z.core.$strict>>;
|
|
860
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
861
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
862
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
863
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
864
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
865
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
866
|
+
type: z.ZodOptional<z.ZodString>;
|
|
867
|
+
description: z.ZodString;
|
|
868
|
+
}, z.core.$strict>>>;
|
|
869
|
+
since: z.ZodOptional<z.ZodString>;
|
|
870
|
+
name: z.ZodString;
|
|
871
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
872
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
873
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
874
|
+
public: "public";
|
|
875
|
+
protected: "protected";
|
|
876
|
+
readonly: "readonly";
|
|
877
|
+
static: "static";
|
|
878
|
+
abstract: "abstract";
|
|
879
|
+
getter: "getter";
|
|
880
|
+
setter: "setter";
|
|
881
|
+
}>>>;
|
|
882
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
883
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
884
|
+
/** Parameter name like `T`. */
|
|
885
|
+
name: z.ZodString;
|
|
886
|
+
/** Constraint like `string` from `T extends string`. */
|
|
887
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
888
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
889
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
890
|
+
}, z.core.$strict>>>;
|
|
891
|
+
}, z.core.$strict>;
|
|
892
|
+
export type ClassDeclarationJson = z.infer<typeof ClassDeclarationJson>;
|
|
893
|
+
/** An interface declaration. Has `members`, `extends`. */
|
|
894
|
+
export declare const InterfaceDeclarationJson: z.ZodObject<{
|
|
895
|
+
kind: z.ZodLiteral<"interface">;
|
|
896
|
+
/**
|
|
897
|
+
* Extended interfaces.
|
|
898
|
+
*
|
|
899
|
+
* @see `ClassDeclarationJson.extends`, `ClassDeclarationJson.implements`,
|
|
900
|
+
* `TypeDeclarationJson.intersects`, `ComponentDeclarationJson.intersects`
|
|
901
|
+
* for sibling "related type identifiers" fields. Field shapes mirror TS syntax.
|
|
902
|
+
*/
|
|
903
|
+
extends: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
904
|
+
/**
|
|
905
|
+
* Interface members: property signatures, method signatures, index signatures,
|
|
906
|
+
* call/construct signatures.
|
|
907
|
+
*/
|
|
908
|
+
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
909
|
+
kind: z.ZodLiteral<"function">;
|
|
910
|
+
/**
|
|
911
|
+
* User-chosen identifier, or the literal `'(call)'` sentinel for
|
|
912
|
+
* unnamed call signatures.
|
|
913
|
+
*/
|
|
914
|
+
name: z.ZodString;
|
|
915
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
916
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
917
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
918
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
919
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
920
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
921
|
+
name: z.ZodString;
|
|
922
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
923
|
+
type: z.ZodString;
|
|
924
|
+
/** Whether the parameter has a `?` token. */
|
|
925
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
926
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
927
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
928
|
+
/** Description from `@param` tag. */
|
|
929
|
+
description: z.ZodOptional<z.ZodString>;
|
|
930
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
931
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
932
|
+
}, z.core.$strict>>>;
|
|
933
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
934
|
+
/** Full TypeScript type signature for this overload. */
|
|
935
|
+
typeSignature: z.ZodString;
|
|
936
|
+
/** Parameters for this overload. */
|
|
937
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
938
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
939
|
+
name: z.ZodString;
|
|
940
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
941
|
+
type: z.ZodString;
|
|
942
|
+
/** Whether the parameter has a `?` token. */
|
|
943
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
944
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
945
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
946
|
+
/** Description from `@param` tag. */
|
|
947
|
+
description: z.ZodOptional<z.ZodString>;
|
|
948
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
949
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
950
|
+
}, z.core.$strict>>>;
|
|
951
|
+
/** Return type for this overload. */
|
|
952
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
953
|
+
/** Generic type parameters for this overload. */
|
|
954
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
955
|
+
/** Parameter name like `T`. */
|
|
956
|
+
name: z.ZodString;
|
|
957
|
+
/** Constraint like `string` from `T extends string`. */
|
|
958
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
959
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
960
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
961
|
+
}, z.core.$strict>>>;
|
|
962
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
963
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
964
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
965
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
966
|
+
}, z.core.$strict>>>;
|
|
967
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
968
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
969
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
970
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
971
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
972
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
973
|
+
type: z.ZodOptional<z.ZodString>;
|
|
974
|
+
description: z.ZodString;
|
|
975
|
+
}, z.core.$strict>>>;
|
|
976
|
+
since: z.ZodOptional<z.ZodString>;
|
|
977
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
978
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
979
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
980
|
+
public: "public";
|
|
981
|
+
protected: "protected";
|
|
982
|
+
readonly: "readonly";
|
|
983
|
+
static: "static";
|
|
984
|
+
abstract: "abstract";
|
|
985
|
+
getter: "getter";
|
|
986
|
+
setter: "setter";
|
|
987
|
+
}>>>;
|
|
988
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
989
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
990
|
+
/** Parameter name like `T`. */
|
|
991
|
+
name: z.ZodString;
|
|
992
|
+
/** Constraint like `string` from `T extends string`. */
|
|
993
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
994
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
995
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
996
|
+
}, z.core.$strict>>>;
|
|
997
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
998
|
+
kind: z.ZodLiteral<"variable">;
|
|
999
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
1000
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1001
|
+
/** Rune flavor when this field is initialized with a value-producing reactivity rune. */
|
|
1002
|
+
reactivity: z.ZodOptional<z.ZodEnum<{
|
|
1003
|
+
$state: "$state";
|
|
1004
|
+
"$state.raw": "$state.raw";
|
|
1005
|
+
$derived: "$derived";
|
|
1006
|
+
"$derived.by": "$derived.by";
|
|
1007
|
+
}>>;
|
|
1008
|
+
/** Default value documented via `@default`. Authoritative initializer (when human-readable) is in `typeSignature`. */
|
|
1009
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1010
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1011
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1012
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1013
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
1014
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1015
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1016
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1017
|
+
description: z.ZodString;
|
|
1018
|
+
}, z.core.$strict>>>;
|
|
1019
|
+
since: z.ZodOptional<z.ZodString>;
|
|
1020
|
+
name: z.ZodString;
|
|
1021
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1022
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
1023
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1024
|
+
public: "public";
|
|
1025
|
+
protected: "protected";
|
|
1026
|
+
readonly: "readonly";
|
|
1027
|
+
static: "static";
|
|
1028
|
+
abstract: "abstract";
|
|
1029
|
+
getter: "getter";
|
|
1030
|
+
setter: "setter";
|
|
1031
|
+
}>>>;
|
|
1032
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
1033
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1034
|
+
/** Parameter name like `T`. */
|
|
1035
|
+
name: z.ZodString;
|
|
1036
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1037
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1038
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1039
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1040
|
+
}, z.core.$strict>>>;
|
|
1041
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1042
|
+
kind: z.ZodLiteral<"constructor">;
|
|
1043
|
+
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
1044
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1045
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
1046
|
+
name: z.ZodString;
|
|
1047
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1048
|
+
type: z.ZodString;
|
|
1049
|
+
/** Whether the parameter has a `?` token. */
|
|
1050
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1051
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
1052
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1053
|
+
/** Description from `@param` tag. */
|
|
1054
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1055
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
1056
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1057
|
+
}, z.core.$strict>>>;
|
|
1058
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1059
|
+
/** Full TypeScript type signature for this overload. */
|
|
1060
|
+
typeSignature: z.ZodString;
|
|
1061
|
+
/** Parameters for this overload. */
|
|
1062
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1063
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
1064
|
+
name: z.ZodString;
|
|
1065
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1066
|
+
type: z.ZodString;
|
|
1067
|
+
/** Whether the parameter has a `?` token. */
|
|
1068
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1069
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
1070
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1071
|
+
/** Description from `@param` tag. */
|
|
1072
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1073
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
1074
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1075
|
+
}, z.core.$strict>>>;
|
|
1076
|
+
/** Return type for this overload. */
|
|
1077
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
1078
|
+
/** Generic type parameters for this overload. */
|
|
1079
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1080
|
+
/** Parameter name like `T`. */
|
|
1081
|
+
name: z.ZodString;
|
|
1082
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1083
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1084
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1085
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1086
|
+
}, z.core.$strict>>>;
|
|
1087
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
1088
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1089
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
1090
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
1091
|
+
}, z.core.$strict>>>;
|
|
1092
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1093
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1094
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1095
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
1096
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1097
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1098
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1099
|
+
description: z.ZodString;
|
|
1100
|
+
}, z.core.$strict>>>;
|
|
1101
|
+
since: z.ZodOptional<z.ZodString>;
|
|
1102
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1103
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
1104
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1105
|
+
public: "public";
|
|
1106
|
+
protected: "protected";
|
|
1107
|
+
readonly: "readonly";
|
|
1108
|
+
static: "static";
|
|
1109
|
+
abstract: "abstract";
|
|
1110
|
+
getter: "getter";
|
|
1111
|
+
setter: "setter";
|
|
1112
|
+
}>>>;
|
|
1113
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
1114
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1115
|
+
/** Parameter name like `T`. */
|
|
1116
|
+
name: z.ZodString;
|
|
1117
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1118
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1119
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1120
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1121
|
+
}, z.core.$strict>>>;
|
|
1122
|
+
}, z.core.$strict>], "kind">>>;
|
|
1123
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1124
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
1125
|
+
module: z.ZodString;
|
|
1126
|
+
name: z.ZodString;
|
|
1127
|
+
}, z.core.$strict>>;
|
|
1128
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1129
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1130
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1131
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
1132
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1133
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1134
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1135
|
+
description: z.ZodString;
|
|
1136
|
+
}, z.core.$strict>>>;
|
|
1137
|
+
since: z.ZodOptional<z.ZodString>;
|
|
1138
|
+
name: z.ZodString;
|
|
1139
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1140
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
1141
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1142
|
+
public: "public";
|
|
1143
|
+
protected: "protected";
|
|
1144
|
+
readonly: "readonly";
|
|
1145
|
+
static: "static";
|
|
1146
|
+
abstract: "abstract";
|
|
1147
|
+
getter: "getter";
|
|
1148
|
+
setter: "setter";
|
|
1149
|
+
}>>>;
|
|
1150
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
1151
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1152
|
+
/** Parameter name like `T`. */
|
|
1153
|
+
name: z.ZodString;
|
|
1154
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1155
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1156
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1157
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1158
|
+
}, z.core.$strict>>>;
|
|
1159
|
+
}, z.core.$strict>;
|
|
1160
|
+
export type InterfaceDeclarationJson = z.infer<typeof InterfaceDeclarationJson>;
|
|
1161
|
+
/** A type alias declaration. Has `members`, `intersects`. */
|
|
1162
|
+
export declare const TypeDeclarationJson: z.ZodObject<{
|
|
1163
|
+
kind: z.ZodLiteral<"type">;
|
|
1164
|
+
/**
|
|
1165
|
+
* Types from intersection branches whose properties are all external (filtered out of `members`).
|
|
1166
|
+
*
|
|
1167
|
+
* @see `ComponentDeclarationJson.intersects`, `ClassDeclarationJson.extends`,
|
|
1168
|
+
* `ClassDeclarationJson.implements`, `InterfaceDeclarationJson.extends`
|
|
1169
|
+
* for sibling "related type identifiers" fields. Field shapes mirror TS syntax.
|
|
1170
|
+
*/
|
|
1171
|
+
intersects: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1172
|
+
/**
|
|
1173
|
+
* Type members: property signatures, method signatures, index signatures,
|
|
1174
|
+
* call/construct signatures.
|
|
1175
|
+
*/
|
|
1176
|
+
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1177
|
+
kind: z.ZodLiteral<"function">;
|
|
1178
|
+
/**
|
|
1179
|
+
* User-chosen identifier, or the literal `'(call)'` sentinel for
|
|
1180
|
+
* unnamed call signatures.
|
|
1181
|
+
*/
|
|
1182
|
+
name: z.ZodString;
|
|
1183
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
1184
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1185
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
1186
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
1187
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1188
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
1189
|
+
name: z.ZodString;
|
|
1190
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1191
|
+
type: z.ZodString;
|
|
1192
|
+
/** Whether the parameter has a `?` token. */
|
|
1193
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1194
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
1195
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1196
|
+
/** Description from `@param` tag. */
|
|
1197
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1198
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
1199
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1200
|
+
}, z.core.$strict>>>;
|
|
1201
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1202
|
+
/** Full TypeScript type signature for this overload. */
|
|
1203
|
+
typeSignature: z.ZodString;
|
|
1204
|
+
/** Parameters for this overload. */
|
|
1205
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1206
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
1207
|
+
name: z.ZodString;
|
|
1208
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1209
|
+
type: z.ZodString;
|
|
1210
|
+
/** Whether the parameter has a `?` token. */
|
|
1211
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1212
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
1213
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1214
|
+
/** Description from `@param` tag. */
|
|
1215
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1216
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
1217
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1218
|
+
}, z.core.$strict>>>;
|
|
1219
|
+
/** Return type for this overload. */
|
|
1220
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
1221
|
+
/** Generic type parameters for this overload. */
|
|
1222
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1223
|
+
/** Parameter name like `T`. */
|
|
1224
|
+
name: z.ZodString;
|
|
1225
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1226
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1227
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1228
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1229
|
+
}, z.core.$strict>>>;
|
|
1230
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
1231
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1232
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
1233
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
1234
|
+
}, z.core.$strict>>>;
|
|
1235
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1236
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1237
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1238
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
1239
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1240
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1241
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1242
|
+
description: z.ZodString;
|
|
1243
|
+
}, z.core.$strict>>>;
|
|
1244
|
+
since: z.ZodOptional<z.ZodString>;
|
|
1245
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1246
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
1247
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1248
|
+
public: "public";
|
|
1249
|
+
protected: "protected";
|
|
1250
|
+
readonly: "readonly";
|
|
1251
|
+
static: "static";
|
|
1252
|
+
abstract: "abstract";
|
|
1253
|
+
getter: "getter";
|
|
1254
|
+
setter: "setter";
|
|
1255
|
+
}>>>;
|
|
1256
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
1257
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1258
|
+
/** Parameter name like `T`. */
|
|
1259
|
+
name: z.ZodString;
|
|
1260
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1261
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1262
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1263
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1264
|
+
}, z.core.$strict>>>;
|
|
1265
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1266
|
+
kind: z.ZodLiteral<"variable">;
|
|
1267
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
1268
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1269
|
+
/** Rune flavor when this field is initialized with a value-producing reactivity rune. */
|
|
1270
|
+
reactivity: z.ZodOptional<z.ZodEnum<{
|
|
1271
|
+
$state: "$state";
|
|
1272
|
+
"$state.raw": "$state.raw";
|
|
1273
|
+
$derived: "$derived";
|
|
1274
|
+
"$derived.by": "$derived.by";
|
|
1275
|
+
}>>;
|
|
1276
|
+
/** Default value documented via `@default`. Authoritative initializer (when human-readable) is in `typeSignature`. */
|
|
1277
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1278
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1279
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1280
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1281
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
1282
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1283
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1284
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1285
|
+
description: z.ZodString;
|
|
1286
|
+
}, z.core.$strict>>>;
|
|
1287
|
+
since: z.ZodOptional<z.ZodString>;
|
|
1288
|
+
name: z.ZodString;
|
|
1289
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1290
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
1291
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1292
|
+
public: "public";
|
|
1293
|
+
protected: "protected";
|
|
1294
|
+
readonly: "readonly";
|
|
1295
|
+
static: "static";
|
|
1296
|
+
abstract: "abstract";
|
|
1297
|
+
getter: "getter";
|
|
1298
|
+
setter: "setter";
|
|
1299
|
+
}>>>;
|
|
1300
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
1301
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1302
|
+
/** Parameter name like `T`. */
|
|
1303
|
+
name: z.ZodString;
|
|
1304
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1305
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1306
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1307
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1308
|
+
}, z.core.$strict>>>;
|
|
1309
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1310
|
+
kind: z.ZodLiteral<"constructor">;
|
|
1311
|
+
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
1312
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1313
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
1314
|
+
name: z.ZodString;
|
|
1315
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1316
|
+
type: z.ZodString;
|
|
1317
|
+
/** Whether the parameter has a `?` token. */
|
|
1318
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1319
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
1320
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1321
|
+
/** Description from `@param` tag. */
|
|
1322
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1323
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
1324
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1325
|
+
}, z.core.$strict>>>;
|
|
1326
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1327
|
+
/** Full TypeScript type signature for this overload. */
|
|
1328
|
+
typeSignature: z.ZodString;
|
|
1329
|
+
/** Parameters for this overload. */
|
|
1330
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1331
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
1332
|
+
name: z.ZodString;
|
|
1333
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1334
|
+
type: z.ZodString;
|
|
1335
|
+
/** Whether the parameter has a `?` token. */
|
|
1336
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1337
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
1338
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1339
|
+
/** Description from `@param` tag. */
|
|
1340
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1341
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
1342
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1343
|
+
}, z.core.$strict>>>;
|
|
1344
|
+
/** Return type for this overload. */
|
|
1345
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
1346
|
+
/** Generic type parameters for this overload. */
|
|
1347
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1348
|
+
/** Parameter name like `T`. */
|
|
1349
|
+
name: z.ZodString;
|
|
1350
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1351
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1352
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1353
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1354
|
+
}, z.core.$strict>>>;
|
|
1355
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
1356
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1357
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
1358
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
1359
|
+
}, z.core.$strict>>>;
|
|
1360
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1361
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1362
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1363
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
1364
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1365
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1366
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1367
|
+
description: z.ZodString;
|
|
1368
|
+
}, z.core.$strict>>>;
|
|
1369
|
+
since: z.ZodOptional<z.ZodString>;
|
|
1370
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1371
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
1372
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1373
|
+
public: "public";
|
|
1374
|
+
protected: "protected";
|
|
1375
|
+
readonly: "readonly";
|
|
1376
|
+
static: "static";
|
|
1377
|
+
abstract: "abstract";
|
|
1378
|
+
getter: "getter";
|
|
1379
|
+
setter: "setter";
|
|
1380
|
+
}>>>;
|
|
1381
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
1382
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1383
|
+
/** Parameter name like `T`. */
|
|
1384
|
+
name: z.ZodString;
|
|
1385
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1386
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1387
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1388
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1389
|
+
}, z.core.$strict>>>;
|
|
1390
|
+
}, z.core.$strict>], "kind">>>;
|
|
1391
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1392
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
1393
|
+
module: z.ZodString;
|
|
1394
|
+
name: z.ZodString;
|
|
1395
|
+
}, z.core.$strict>>;
|
|
1396
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1397
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1398
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1399
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
1400
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1401
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1402
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1403
|
+
description: z.ZodString;
|
|
1404
|
+
}, z.core.$strict>>>;
|
|
1405
|
+
since: z.ZodOptional<z.ZodString>;
|
|
1406
|
+
name: z.ZodString;
|
|
1407
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1408
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
1409
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1410
|
+
public: "public";
|
|
1411
|
+
protected: "protected";
|
|
1412
|
+
readonly: "readonly";
|
|
1413
|
+
static: "static";
|
|
1414
|
+
abstract: "abstract";
|
|
1415
|
+
getter: "getter";
|
|
1416
|
+
setter: "setter";
|
|
1417
|
+
}>>>;
|
|
1418
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
1419
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1420
|
+
/** Parameter name like `T`. */
|
|
1421
|
+
name: z.ZodString;
|
|
1422
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1423
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1424
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1425
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1426
|
+
}, z.core.$strict>>>;
|
|
1427
|
+
}, z.core.$strict>;
|
|
1428
|
+
export type TypeDeclarationJson = z.infer<typeof TypeDeclarationJson>;
|
|
1429
|
+
/**
|
|
1430
|
+
* A variable declaration. Has optional `reactivity` for top-level rune-module
|
|
1431
|
+
* exports (e.g., `export let count = $state(0)` in `.svelte.ts` or `<script module>`).
|
|
1432
|
+
*/
|
|
1433
|
+
export declare const VariableDeclarationJson: z.ZodObject<{
|
|
1434
|
+
kind: z.ZodLiteral<"variable">;
|
|
1435
|
+
/** Rune flavor when this variable is initialized with a value-producing reactivity rune. */
|
|
1436
|
+
reactivity: z.ZodOptional<z.ZodEnum<{
|
|
1437
|
+
$state: "$state";
|
|
1438
|
+
"$state.raw": "$state.raw";
|
|
1439
|
+
$derived: "$derived";
|
|
1440
|
+
"$derived.by": "$derived.by";
|
|
1441
|
+
}>>;
|
|
1442
|
+
/** Default value documented via `@default`. Useful when the AST initializer is opaque (a call expression, computed value) and the author wants to document the conceptual default. */
|
|
1443
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1444
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1445
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
1446
|
+
module: z.ZodString;
|
|
1447
|
+
name: z.ZodString;
|
|
1448
|
+
}, z.core.$strict>>;
|
|
1449
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1450
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1451
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1452
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
1453
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1454
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1455
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1456
|
+
description: z.ZodString;
|
|
1457
|
+
}, z.core.$strict>>>;
|
|
1458
|
+
since: z.ZodOptional<z.ZodString>;
|
|
1459
|
+
name: z.ZodString;
|
|
1460
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1461
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
1462
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1463
|
+
public: "public";
|
|
1464
|
+
protected: "protected";
|
|
1465
|
+
readonly: "readonly";
|
|
1466
|
+
static: "static";
|
|
1467
|
+
abstract: "abstract";
|
|
1468
|
+
getter: "getter";
|
|
1469
|
+
setter: "setter";
|
|
1470
|
+
}>>>;
|
|
1471
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
1472
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1473
|
+
/** Parameter name like `T`. */
|
|
1474
|
+
name: z.ZodString;
|
|
1475
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1476
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1477
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1478
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1479
|
+
}, z.core.$strict>>>;
|
|
1480
|
+
}, z.core.$strict>;
|
|
1481
|
+
export type VariableDeclarationJson = z.infer<typeof VariableDeclarationJson>;
|
|
1482
|
+
/** An enum declaration. Has `members` for enum values. */
|
|
1483
|
+
export declare const EnumDeclarationJson: z.ZodObject<{
|
|
1484
|
+
kind: z.ZodLiteral<"enum">;
|
|
1485
|
+
/** Enum members: name/value pairs with optional JSDoc. */
|
|
1486
|
+
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1487
|
+
kind: z.ZodLiteral<"function">;
|
|
1488
|
+
/**
|
|
1489
|
+
* User-chosen identifier, or the literal `'(call)'` sentinel for
|
|
1490
|
+
* unnamed call signatures.
|
|
1491
|
+
*/
|
|
1492
|
+
name: z.ZodString;
|
|
1493
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
1494
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1495
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
1496
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
1497
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1498
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
1499
|
+
name: z.ZodString;
|
|
1500
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1501
|
+
type: z.ZodString;
|
|
1502
|
+
/** Whether the parameter has a `?` token. */
|
|
1503
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1504
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
1505
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1506
|
+
/** Description from `@param` tag. */
|
|
1507
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1508
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
1509
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1510
|
+
}, z.core.$strict>>>;
|
|
1511
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1512
|
+
/** Full TypeScript type signature for this overload. */
|
|
1513
|
+
typeSignature: z.ZodString;
|
|
1514
|
+
/** Parameters for this overload. */
|
|
1515
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1516
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
1517
|
+
name: z.ZodString;
|
|
1518
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1519
|
+
type: z.ZodString;
|
|
1520
|
+
/** Whether the parameter has a `?` token. */
|
|
1521
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1522
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
1523
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1524
|
+
/** Description from `@param` tag. */
|
|
1525
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1526
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
1527
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1528
|
+
}, z.core.$strict>>>;
|
|
1529
|
+
/** Return type for this overload. */
|
|
1530
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
1531
|
+
/** Generic type parameters for this overload. */
|
|
1532
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1533
|
+
/** Parameter name like `T`. */
|
|
1534
|
+
name: z.ZodString;
|
|
1535
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1536
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1537
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1538
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1539
|
+
}, z.core.$strict>>>;
|
|
1540
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
1541
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1542
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
1543
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
1544
|
+
}, z.core.$strict>>>;
|
|
1545
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1546
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1547
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1548
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
1549
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1550
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1551
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1552
|
+
description: z.ZodString;
|
|
1553
|
+
}, z.core.$strict>>>;
|
|
1554
|
+
since: z.ZodOptional<z.ZodString>;
|
|
1555
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1556
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
1557
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1558
|
+
public: "public";
|
|
1559
|
+
protected: "protected";
|
|
1560
|
+
readonly: "readonly";
|
|
1561
|
+
static: "static";
|
|
1562
|
+
abstract: "abstract";
|
|
1563
|
+
getter: "getter";
|
|
1564
|
+
setter: "setter";
|
|
1565
|
+
}>>>;
|
|
1566
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
1567
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1568
|
+
/** Parameter name like `T`. */
|
|
1569
|
+
name: z.ZodString;
|
|
1570
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1571
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1572
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1573
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1574
|
+
}, z.core.$strict>>>;
|
|
1575
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1576
|
+
kind: z.ZodLiteral<"variable">;
|
|
1577
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
1578
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1579
|
+
/** Rune flavor when this field is initialized with a value-producing reactivity rune. */
|
|
1580
|
+
reactivity: z.ZodOptional<z.ZodEnum<{
|
|
1581
|
+
$state: "$state";
|
|
1582
|
+
"$state.raw": "$state.raw";
|
|
1583
|
+
$derived: "$derived";
|
|
1584
|
+
"$derived.by": "$derived.by";
|
|
1585
|
+
}>>;
|
|
1586
|
+
/** Default value documented via `@default`. Authoritative initializer (when human-readable) is in `typeSignature`. */
|
|
1587
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1588
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1589
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1590
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1591
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
1592
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1593
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1594
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1595
|
+
description: z.ZodString;
|
|
1596
|
+
}, z.core.$strict>>>;
|
|
1597
|
+
since: z.ZodOptional<z.ZodString>;
|
|
1598
|
+
name: z.ZodString;
|
|
1599
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1600
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
1601
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1602
|
+
public: "public";
|
|
1603
|
+
protected: "protected";
|
|
1604
|
+
readonly: "readonly";
|
|
1605
|
+
static: "static";
|
|
1606
|
+
abstract: "abstract";
|
|
1607
|
+
getter: "getter";
|
|
1608
|
+
setter: "setter";
|
|
1609
|
+
}>>>;
|
|
1610
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
1611
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1612
|
+
/** Parameter name like `T`. */
|
|
1613
|
+
name: z.ZodString;
|
|
1614
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1615
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1616
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1617
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1618
|
+
}, z.core.$strict>>>;
|
|
1619
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1620
|
+
kind: z.ZodLiteral<"constructor">;
|
|
1621
|
+
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
1622
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1623
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
1624
|
+
name: z.ZodString;
|
|
1625
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1626
|
+
type: z.ZodString;
|
|
1627
|
+
/** Whether the parameter has a `?` token. */
|
|
1628
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1629
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
1630
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1631
|
+
/** Description from `@param` tag. */
|
|
1632
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1633
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
1634
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1635
|
+
}, z.core.$strict>>>;
|
|
1636
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1637
|
+
/** Full TypeScript type signature for this overload. */
|
|
1638
|
+
typeSignature: z.ZodString;
|
|
1639
|
+
/** Parameters for this overload. */
|
|
1640
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1641
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
1642
|
+
name: z.ZodString;
|
|
1643
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1644
|
+
type: z.ZodString;
|
|
1645
|
+
/** Whether the parameter has a `?` token. */
|
|
1646
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1647
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
1648
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1649
|
+
/** Description from `@param` tag. */
|
|
1650
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1651
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
1652
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1653
|
+
}, z.core.$strict>>>;
|
|
1654
|
+
/** Return type for this overload. */
|
|
1655
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
1656
|
+
/** Generic type parameters for this overload. */
|
|
1657
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1658
|
+
/** Parameter name like `T`. */
|
|
1659
|
+
name: z.ZodString;
|
|
1660
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1661
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1662
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1663
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1664
|
+
}, z.core.$strict>>>;
|
|
1665
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
1666
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1667
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
1668
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
1669
|
+
}, z.core.$strict>>>;
|
|
1670
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1671
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1672
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1673
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
1674
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1675
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1676
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1677
|
+
description: z.ZodString;
|
|
1678
|
+
}, z.core.$strict>>>;
|
|
1679
|
+
since: z.ZodOptional<z.ZodString>;
|
|
1680
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1681
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
1682
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1683
|
+
public: "public";
|
|
1684
|
+
protected: "protected";
|
|
1685
|
+
readonly: "readonly";
|
|
1686
|
+
static: "static";
|
|
1687
|
+
abstract: "abstract";
|
|
1688
|
+
getter: "getter";
|
|
1689
|
+
setter: "setter";
|
|
1690
|
+
}>>>;
|
|
1691
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
1692
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1693
|
+
/** Parameter name like `T`. */
|
|
1694
|
+
name: z.ZodString;
|
|
1695
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1696
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1697
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1698
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1699
|
+
}, z.core.$strict>>>;
|
|
1700
|
+
}, z.core.$strict>], "kind">>>;
|
|
1701
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1702
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
1703
|
+
module: z.ZodString;
|
|
1704
|
+
name: z.ZodString;
|
|
1705
|
+
}, z.core.$strict>>;
|
|
1706
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1707
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1708
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1709
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
1710
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1711
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1712
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1713
|
+
description: z.ZodString;
|
|
1714
|
+
}, z.core.$strict>>>;
|
|
1715
|
+
since: z.ZodOptional<z.ZodString>;
|
|
1716
|
+
name: z.ZodString;
|
|
1717
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1718
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
1719
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1720
|
+
public: "public";
|
|
1721
|
+
protected: "protected";
|
|
1722
|
+
readonly: "readonly";
|
|
1723
|
+
static: "static";
|
|
1724
|
+
abstract: "abstract";
|
|
1725
|
+
getter: "getter";
|
|
1726
|
+
setter: "setter";
|
|
1727
|
+
}>>>;
|
|
1728
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
1729
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1730
|
+
/** Parameter name like `T`. */
|
|
1731
|
+
name: z.ZodString;
|
|
1732
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1733
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1734
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1735
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1736
|
+
}, z.core.$strict>>>;
|
|
1737
|
+
}, z.core.$strict>;
|
|
1738
|
+
export type EnumDeclarationJson = z.infer<typeof EnumDeclarationJson>;
|
|
1739
|
+
/** A Svelte component declaration. Has `props`, `intersects`, `acceptsChildren`. */
|
|
1740
|
+
export declare const ComponentDeclarationJson: z.ZodObject<{
|
|
1741
|
+
kind: z.ZodLiteral<"component">;
|
|
1742
|
+
/**
|
|
1743
|
+
* Types from intersection branches whose properties are all external (filtered out of `props`).
|
|
1744
|
+
*
|
|
1745
|
+
* @see `TypeDeclarationJson.intersects`, `ClassDeclarationJson.extends`,
|
|
1746
|
+
* `ClassDeclarationJson.implements`, `InterfaceDeclarationJson.extends`
|
|
1747
|
+
* for sibling "related type identifiers" fields. Field shapes mirror TS syntax.
|
|
1748
|
+
*/
|
|
1749
|
+
intersects: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1750
|
+
/** Svelte component props. */
|
|
1751
|
+
props: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1752
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1753
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
1754
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1755
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1756
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1757
|
+
description: z.ZodString;
|
|
1758
|
+
}, z.core.$strict>>>;
|
|
1759
|
+
since: z.ZodOptional<z.ZodString>;
|
|
1760
|
+
/** Prop name as declared in the component's `$props()` type. */
|
|
1761
|
+
name: z.ZodString;
|
|
1762
|
+
/** Resolved TypeScript type string. */
|
|
1763
|
+
type: z.ZodString;
|
|
1764
|
+
/** Whether the prop is optional in the component's props type. */
|
|
1765
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1766
|
+
/** Description from JSDoc on the prop's type declaration. */
|
|
1767
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1768
|
+
/** Default value expression from destructuring or `@default` tag. */
|
|
1769
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1770
|
+
/** Whether the prop uses the `$bindable()` rune, enabling two-way binding. */
|
|
1771
|
+
bindable: z.ZodDefault<z.ZodBoolean>;
|
|
1772
|
+
/**
|
|
1773
|
+
* Structured parameters for callable props (e.g., `Snippet<[text: string]>`).
|
|
1774
|
+
*
|
|
1775
|
+
* Present when the prop has extractable parameters, absent otherwise.
|
|
1776
|
+
* Only populated when there are actual parameters — bare `Snippet` / `Snippet<[]>`
|
|
1777
|
+
* does not set this field. Intentionally `.optional()` rather than
|
|
1778
|
+
* `.default([])` (see the array-field policy note above): absence is a
|
|
1779
|
+
* meaningful signal, not an empty list.
|
|
1780
|
+
*/
|
|
1781
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1782
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
1783
|
+
name: z.ZodString;
|
|
1784
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1785
|
+
type: z.ZodString;
|
|
1786
|
+
/** Whether the parameter has a `?` token. */
|
|
1787
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1788
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
1789
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1790
|
+
/** Description from `@param` tag. */
|
|
1791
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1792
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
1793
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1794
|
+
}, z.core.$strict>>>;
|
|
1795
|
+
}, z.core.$strict>>>;
|
|
1796
|
+
/** Whether the component accepts children (explicit `children` prop, inherited, or implicit template usage). */
|
|
1797
|
+
acceptsChildren: z.ZodDefault<z.ZodBoolean>;
|
|
1798
|
+
/** Script language. `undefined` means TypeScript (default), `'js'` for JavaScript-only components. */
|
|
1799
|
+
lang: z.ZodOptional<z.ZodEnum<{
|
|
1800
|
+
js: "js";
|
|
1801
|
+
}>>;
|
|
1802
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1803
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
1804
|
+
module: z.ZodString;
|
|
1805
|
+
name: z.ZodString;
|
|
1806
|
+
}, z.core.$strict>>;
|
|
1807
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1808
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1809
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1810
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
1811
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1812
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1813
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1814
|
+
description: z.ZodString;
|
|
1815
|
+
}, z.core.$strict>>>;
|
|
1816
|
+
since: z.ZodOptional<z.ZodString>;
|
|
1817
|
+
name: z.ZodString;
|
|
1818
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1819
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
1820
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1821
|
+
public: "public";
|
|
1822
|
+
protected: "protected";
|
|
1823
|
+
readonly: "readonly";
|
|
1824
|
+
static: "static";
|
|
1825
|
+
abstract: "abstract";
|
|
1826
|
+
getter: "getter";
|
|
1827
|
+
setter: "setter";
|
|
1828
|
+
}>>>;
|
|
1829
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
1830
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1831
|
+
/** Parameter name like `T`. */
|
|
1832
|
+
name: z.ZodString;
|
|
1833
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1834
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1835
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1836
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1837
|
+
}, z.core.$strict>>>;
|
|
1838
|
+
}, z.core.$strict>;
|
|
1839
|
+
export type ComponentDeclarationJson = z.infer<typeof ComponentDeclarationJson>;
|
|
1840
|
+
/** A Svelte snippet declaration exported from `<script module>`. Has `parameters`. */
|
|
1841
|
+
export declare const SnippetDeclarationJson: z.ZodObject<{
|
|
1842
|
+
kind: z.ZodLiteral<"snippet">;
|
|
1843
|
+
/** Snippet parameters. */
|
|
1844
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1845
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
1846
|
+
name: z.ZodString;
|
|
1847
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1848
|
+
type: z.ZodString;
|
|
1849
|
+
/** Whether the parameter has a `?` token. */
|
|
1850
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1851
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
1852
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1853
|
+
/** Description from `@param` tag. */
|
|
1854
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1855
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
1856
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1857
|
+
}, z.core.$strict>>>;
|
|
1858
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1859
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
1860
|
+
module: z.ZodString;
|
|
1861
|
+
name: z.ZodString;
|
|
1862
|
+
}, z.core.$strict>>;
|
|
1863
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1864
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1865
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1866
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
1867
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1868
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1869
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1870
|
+
description: z.ZodString;
|
|
1871
|
+
}, z.core.$strict>>>;
|
|
1872
|
+
since: z.ZodOptional<z.ZodString>;
|
|
1873
|
+
name: z.ZodString;
|
|
1874
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1875
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
1876
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1877
|
+
public: "public";
|
|
1878
|
+
protected: "protected";
|
|
1879
|
+
readonly: "readonly";
|
|
1880
|
+
static: "static";
|
|
1881
|
+
abstract: "abstract";
|
|
1882
|
+
getter: "getter";
|
|
1883
|
+
setter: "setter";
|
|
1884
|
+
}>>>;
|
|
1885
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
1886
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1887
|
+
/** Parameter name like `T`. */
|
|
1888
|
+
name: z.ZodString;
|
|
1889
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1890
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1891
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1892
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1893
|
+
}, z.core.$strict>>>;
|
|
1894
|
+
}, z.core.$strict>;
|
|
1895
|
+
export type SnippetDeclarationJson = z.infer<typeof SnippetDeclarationJson>;
|
|
1896
|
+
/**
|
|
1897
|
+
* A namespace re-export binding: `export * as ns from './x'`.
|
|
1898
|
+
*
|
|
1899
|
+
* Carries no inline members — `module` points to the source module whose
|
|
1900
|
+
* declarations are projected under this name. Consumers that want to render
|
|
1901
|
+
* `ns.a` can deref by reading the source module's `declarations` array.
|
|
1902
|
+
*/
|
|
1903
|
+
export declare const NamespaceDeclarationJson: z.ZodObject<{
|
|
1904
|
+
kind: z.ZodLiteral<"namespace">;
|
|
1905
|
+
/** Source module path (relative to `sourceRoot`) projected under this binding. */
|
|
1906
|
+
module: z.ZodString;
|
|
1907
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1908
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
1909
|
+
module: z.ZodString;
|
|
1910
|
+
name: z.ZodString;
|
|
1911
|
+
}, z.core.$strict>>;
|
|
1912
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1913
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1914
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1915
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
1916
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1917
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1918
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1919
|
+
description: z.ZodString;
|
|
1920
|
+
}, z.core.$strict>>>;
|
|
1921
|
+
since: z.ZodOptional<z.ZodString>;
|
|
1922
|
+
name: z.ZodString;
|
|
1923
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
1924
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
1925
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1926
|
+
public: "public";
|
|
1927
|
+
protected: "protected";
|
|
1928
|
+
readonly: "readonly";
|
|
1929
|
+
static: "static";
|
|
1930
|
+
abstract: "abstract";
|
|
1931
|
+
getter: "getter";
|
|
1932
|
+
setter: "setter";
|
|
1933
|
+
}>>>;
|
|
1934
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
1935
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1936
|
+
/** Parameter name like `T`. */
|
|
1937
|
+
name: z.ZodString;
|
|
1938
|
+
/** Constraint like `string` from `T extends string`. */
|
|
1939
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
1940
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
1941
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
1942
|
+
}, z.core.$strict>>>;
|
|
1943
|
+
}, z.core.$strict>;
|
|
1944
|
+
export type NamespaceDeclarationJson = z.infer<typeof NamespaceDeclarationJson>;
|
|
1945
|
+
/**
|
|
1946
|
+
* Metadata for an exported declaration (function, type, class, component, etc.).
|
|
1947
|
+
*
|
|
1948
|
+
* Discriminated union on `kind` — each variant has only the fields relevant to that kind.
|
|
1949
|
+
* Use `isKind` (in `declaration-helpers.ts`) to narrow, or check `declaration.kind` directly.
|
|
1950
|
+
*/
|
|
1951
|
+
export declare const DeclarationJson: z.ZodDiscriminatedUnion<[
|
|
1952
|
+
typeof FunctionDeclarationJson,
|
|
1953
|
+
typeof ClassDeclarationJson,
|
|
1954
|
+
typeof InterfaceDeclarationJson,
|
|
1955
|
+
typeof TypeDeclarationJson,
|
|
1956
|
+
typeof VariableDeclarationJson,
|
|
1957
|
+
typeof EnumDeclarationJson,
|
|
1958
|
+
typeof ComponentDeclarationJson,
|
|
1959
|
+
typeof SnippetDeclarationJson,
|
|
1960
|
+
typeof NamespaceDeclarationJson
|
|
1961
|
+
], 'kind'>;
|
|
1962
|
+
export type DeclarationJson = z.infer<typeof DeclarationJson>;
|
|
1963
|
+
export type DeclarationJsonInput = z.input<typeof DeclarationJson>;
|
|
1964
|
+
/**
|
|
1965
|
+
* Metadata for a source module — the top-level container in the data model.
|
|
1966
|
+
*
|
|
1967
|
+
* `analyze` and `analyzeFromFiles` return `Array<ModuleJson>` sorted alphabetically by `path`.
|
|
1968
|
+
* Each module contains its exported `declarations`, dependency graph, and optional `moduleComment`.
|
|
1969
|
+
*/
|
|
1970
|
+
export declare const ModuleJson: z.ZodObject<{
|
|
1971
|
+
/**
|
|
1972
|
+
* Path relative to `sourceRoot` (e.g., `helpers.ts` for the default
|
|
1973
|
+
* SvelteKit `src/lib` layout). `sourceRoot` is configurable via
|
|
1974
|
+
* `createSourceOptions` / the CLI `--source-root` flag — consumers with a
|
|
1975
|
+
* custom layout (e.g., `sourcePaths: ['src/lib', 'src/routes']`,
|
|
1976
|
+
* `sourceRoot: 'src'`) see prefixes like `lib/foo.ts` here.
|
|
1977
|
+
*/
|
|
1978
|
+
path: z.ZodString;
|
|
1979
|
+
/** Exported declarations from this module. */
|
|
1980
|
+
declarations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1981
|
+
kind: z.ZodLiteral<"function">;
|
|
1982
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
1983
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
1984
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1985
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
1986
|
+
name: z.ZodString;
|
|
1987
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
1988
|
+
type: z.ZodString;
|
|
1989
|
+
/** Whether the parameter has a `?` token. */
|
|
1990
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1991
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
1992
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1993
|
+
/** Description from `@param` tag. */
|
|
1994
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1995
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
1996
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1997
|
+
}, z.core.$strict>>>;
|
|
1998
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1999
|
+
/** Full TypeScript type signature for this overload. */
|
|
2000
|
+
typeSignature: z.ZodString;
|
|
2001
|
+
/** Parameters for this overload. */
|
|
2002
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2003
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
2004
|
+
name: z.ZodString;
|
|
2005
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2006
|
+
type: z.ZodString;
|
|
2007
|
+
/** Whether the parameter has a `?` token. */
|
|
2008
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2009
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
2010
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2011
|
+
/** Description from `@param` tag. */
|
|
2012
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2013
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
2014
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2015
|
+
}, z.core.$strict>>>;
|
|
2016
|
+
/** Return type for this overload. */
|
|
2017
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
2018
|
+
/** Generic type parameters for this overload. */
|
|
2019
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2020
|
+
/** Parameter name like `T`. */
|
|
2021
|
+
name: z.ZodString;
|
|
2022
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2023
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2024
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2025
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2026
|
+
}, z.core.$strict>>>;
|
|
2027
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
2028
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2029
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
2030
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
2031
|
+
}, z.core.$strict>>>;
|
|
2032
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2033
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
2034
|
+
module: z.ZodString;
|
|
2035
|
+
name: z.ZodString;
|
|
2036
|
+
}, z.core.$strict>>;
|
|
2037
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2038
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
2039
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2040
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
2041
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2042
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2043
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2044
|
+
description: z.ZodString;
|
|
2045
|
+
}, z.core.$strict>>>;
|
|
2046
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2047
|
+
name: z.ZodString;
|
|
2048
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2049
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
2050
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2051
|
+
public: "public";
|
|
2052
|
+
protected: "protected";
|
|
2053
|
+
readonly: "readonly";
|
|
2054
|
+
static: "static";
|
|
2055
|
+
abstract: "abstract";
|
|
2056
|
+
getter: "getter";
|
|
2057
|
+
setter: "setter";
|
|
2058
|
+
}>>>;
|
|
2059
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
2060
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2061
|
+
/** Parameter name like `T`. */
|
|
2062
|
+
name: z.ZodString;
|
|
2063
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2064
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2065
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2066
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2067
|
+
}, z.core.$strict>>>;
|
|
2068
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2069
|
+
kind: z.ZodLiteral<"class">;
|
|
2070
|
+
/**
|
|
2071
|
+
* Extended base class (single; TypeScript allows only one).
|
|
2072
|
+
*
|
|
2073
|
+
* @see `implements` (this variant), `InterfaceDeclarationJson.extends`,
|
|
2074
|
+
* `TypeDeclarationJson.intersects`, `ComponentDeclarationJson.intersects`
|
|
2075
|
+
* for sibling "related type identifiers" fields. Field shapes mirror TS syntax.
|
|
2076
|
+
*/
|
|
2077
|
+
extends: z.ZodOptional<z.ZodString>;
|
|
2078
|
+
/** Implemented interfaces. */
|
|
2079
|
+
implements: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2080
|
+
/**
|
|
2081
|
+
* Class members: methods, properties, constructors, getters/setters.
|
|
2082
|
+
*/
|
|
2083
|
+
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2084
|
+
kind: z.ZodLiteral<"function">;
|
|
2085
|
+
/**
|
|
2086
|
+
* User-chosen identifier, or the literal `'(call)'` sentinel for
|
|
2087
|
+
* unnamed call signatures.
|
|
2088
|
+
*/
|
|
2089
|
+
name: z.ZodString;
|
|
2090
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
2091
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2092
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
2093
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
2094
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2095
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
2096
|
+
name: z.ZodString;
|
|
2097
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2098
|
+
type: z.ZodString;
|
|
2099
|
+
/** Whether the parameter has a `?` token. */
|
|
2100
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2101
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
2102
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2103
|
+
/** Description from `@param` tag. */
|
|
2104
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2105
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
2106
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2107
|
+
}, z.core.$strict>>>;
|
|
2108
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2109
|
+
/** Full TypeScript type signature for this overload. */
|
|
2110
|
+
typeSignature: z.ZodString;
|
|
2111
|
+
/** Parameters for this overload. */
|
|
2112
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2113
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
2114
|
+
name: z.ZodString;
|
|
2115
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2116
|
+
type: z.ZodString;
|
|
2117
|
+
/** Whether the parameter has a `?` token. */
|
|
2118
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2119
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
2120
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2121
|
+
/** Description from `@param` tag. */
|
|
2122
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2123
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
2124
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2125
|
+
}, z.core.$strict>>>;
|
|
2126
|
+
/** Return type for this overload. */
|
|
2127
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
2128
|
+
/** Generic type parameters for this overload. */
|
|
2129
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2130
|
+
/** Parameter name like `T`. */
|
|
2131
|
+
name: z.ZodString;
|
|
2132
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2133
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2134
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2135
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2136
|
+
}, z.core.$strict>>>;
|
|
2137
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
2138
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2139
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
2140
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
2141
|
+
}, z.core.$strict>>>;
|
|
2142
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2143
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
2144
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2145
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
2146
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2147
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2148
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2149
|
+
description: z.ZodString;
|
|
2150
|
+
}, z.core.$strict>>>;
|
|
2151
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2152
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2153
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
2154
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2155
|
+
public: "public";
|
|
2156
|
+
protected: "protected";
|
|
2157
|
+
readonly: "readonly";
|
|
2158
|
+
static: "static";
|
|
2159
|
+
abstract: "abstract";
|
|
2160
|
+
getter: "getter";
|
|
2161
|
+
setter: "setter";
|
|
2162
|
+
}>>>;
|
|
2163
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
2164
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2165
|
+
/** Parameter name like `T`. */
|
|
2166
|
+
name: z.ZodString;
|
|
2167
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2168
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2169
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2170
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2171
|
+
}, z.core.$strict>>>;
|
|
2172
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2173
|
+
kind: z.ZodLiteral<"variable">;
|
|
2174
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
2175
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2176
|
+
/** Rune flavor when this field is initialized with a value-producing reactivity rune. */
|
|
2177
|
+
reactivity: z.ZodOptional<z.ZodEnum<{
|
|
2178
|
+
$state: "$state";
|
|
2179
|
+
"$state.raw": "$state.raw";
|
|
2180
|
+
$derived: "$derived";
|
|
2181
|
+
"$derived.by": "$derived.by";
|
|
2182
|
+
}>>;
|
|
2183
|
+
/** Default value documented via `@default`. Authoritative initializer (when human-readable) is in `typeSignature`. */
|
|
2184
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2185
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2186
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
2187
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2188
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
2189
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2190
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2191
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2192
|
+
description: z.ZodString;
|
|
2193
|
+
}, z.core.$strict>>>;
|
|
2194
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2195
|
+
name: z.ZodString;
|
|
2196
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2197
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
2198
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2199
|
+
public: "public";
|
|
2200
|
+
protected: "protected";
|
|
2201
|
+
readonly: "readonly";
|
|
2202
|
+
static: "static";
|
|
2203
|
+
abstract: "abstract";
|
|
2204
|
+
getter: "getter";
|
|
2205
|
+
setter: "setter";
|
|
2206
|
+
}>>>;
|
|
2207
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
2208
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2209
|
+
/** Parameter name like `T`. */
|
|
2210
|
+
name: z.ZodString;
|
|
2211
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2212
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2213
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2214
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2215
|
+
}, z.core.$strict>>>;
|
|
2216
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2217
|
+
kind: z.ZodLiteral<"constructor">;
|
|
2218
|
+
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
2219
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2220
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
2221
|
+
name: z.ZodString;
|
|
2222
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2223
|
+
type: z.ZodString;
|
|
2224
|
+
/** Whether the parameter has a `?` token. */
|
|
2225
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2226
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
2227
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2228
|
+
/** Description from `@param` tag. */
|
|
2229
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2230
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
2231
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2232
|
+
}, z.core.$strict>>>;
|
|
2233
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2234
|
+
/** Full TypeScript type signature for this overload. */
|
|
2235
|
+
typeSignature: z.ZodString;
|
|
2236
|
+
/** Parameters for this overload. */
|
|
2237
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2238
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
2239
|
+
name: z.ZodString;
|
|
2240
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2241
|
+
type: z.ZodString;
|
|
2242
|
+
/** Whether the parameter has a `?` token. */
|
|
2243
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2244
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
2245
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2246
|
+
/** Description from `@param` tag. */
|
|
2247
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2248
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
2249
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2250
|
+
}, z.core.$strict>>>;
|
|
2251
|
+
/** Return type for this overload. */
|
|
2252
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
2253
|
+
/** Generic type parameters for this overload. */
|
|
2254
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2255
|
+
/** Parameter name like `T`. */
|
|
2256
|
+
name: z.ZodString;
|
|
2257
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2258
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2259
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2260
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2261
|
+
}, z.core.$strict>>>;
|
|
2262
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
2263
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2264
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
2265
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
2266
|
+
}, z.core.$strict>>>;
|
|
2267
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2268
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
2269
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2270
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
2271
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2272
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2273
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2274
|
+
description: z.ZodString;
|
|
2275
|
+
}, z.core.$strict>>>;
|
|
2276
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2277
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2278
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
2279
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2280
|
+
public: "public";
|
|
2281
|
+
protected: "protected";
|
|
2282
|
+
readonly: "readonly";
|
|
2283
|
+
static: "static";
|
|
2284
|
+
abstract: "abstract";
|
|
2285
|
+
getter: "getter";
|
|
2286
|
+
setter: "setter";
|
|
2287
|
+
}>>>;
|
|
2288
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
2289
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2290
|
+
/** Parameter name like `T`. */
|
|
2291
|
+
name: z.ZodString;
|
|
2292
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2293
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2294
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2295
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2296
|
+
}, z.core.$strict>>>;
|
|
2297
|
+
}, z.core.$strict>], "kind">>>;
|
|
2298
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2299
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
2300
|
+
module: z.ZodString;
|
|
2301
|
+
name: z.ZodString;
|
|
2302
|
+
}, z.core.$strict>>;
|
|
2303
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2304
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
2305
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2306
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
2307
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2308
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2309
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2310
|
+
description: z.ZodString;
|
|
2311
|
+
}, z.core.$strict>>>;
|
|
2312
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2313
|
+
name: z.ZodString;
|
|
2314
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2315
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
2316
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2317
|
+
public: "public";
|
|
2318
|
+
protected: "protected";
|
|
2319
|
+
readonly: "readonly";
|
|
2320
|
+
static: "static";
|
|
2321
|
+
abstract: "abstract";
|
|
2322
|
+
getter: "getter";
|
|
2323
|
+
setter: "setter";
|
|
2324
|
+
}>>>;
|
|
2325
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
2326
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2327
|
+
/** Parameter name like `T`. */
|
|
2328
|
+
name: z.ZodString;
|
|
2329
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2330
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2331
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2332
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2333
|
+
}, z.core.$strict>>>;
|
|
2334
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2335
|
+
kind: z.ZodLiteral<"interface">;
|
|
2336
|
+
/**
|
|
2337
|
+
* Extended interfaces.
|
|
2338
|
+
*
|
|
2339
|
+
* @see `ClassDeclarationJson.extends`, `ClassDeclarationJson.implements`,
|
|
2340
|
+
* `TypeDeclarationJson.intersects`, `ComponentDeclarationJson.intersects`
|
|
2341
|
+
* for sibling "related type identifiers" fields. Field shapes mirror TS syntax.
|
|
2342
|
+
*/
|
|
2343
|
+
extends: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2344
|
+
/**
|
|
2345
|
+
* Interface members: property signatures, method signatures, index signatures,
|
|
2346
|
+
* call/construct signatures.
|
|
2347
|
+
*/
|
|
2348
|
+
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2349
|
+
kind: z.ZodLiteral<"function">;
|
|
2350
|
+
/**
|
|
2351
|
+
* User-chosen identifier, or the literal `'(call)'` sentinel for
|
|
2352
|
+
* unnamed call signatures.
|
|
2353
|
+
*/
|
|
2354
|
+
name: z.ZodString;
|
|
2355
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
2356
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2357
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
2358
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
2359
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2360
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
2361
|
+
name: z.ZodString;
|
|
2362
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2363
|
+
type: z.ZodString;
|
|
2364
|
+
/** Whether the parameter has a `?` token. */
|
|
2365
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2366
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
2367
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2368
|
+
/** Description from `@param` tag. */
|
|
2369
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2370
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
2371
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2372
|
+
}, z.core.$strict>>>;
|
|
2373
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2374
|
+
/** Full TypeScript type signature for this overload. */
|
|
2375
|
+
typeSignature: z.ZodString;
|
|
2376
|
+
/** Parameters for this overload. */
|
|
2377
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2378
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
2379
|
+
name: z.ZodString;
|
|
2380
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2381
|
+
type: z.ZodString;
|
|
2382
|
+
/** Whether the parameter has a `?` token. */
|
|
2383
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2384
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
2385
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2386
|
+
/** Description from `@param` tag. */
|
|
2387
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2388
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
2389
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2390
|
+
}, z.core.$strict>>>;
|
|
2391
|
+
/** Return type for this overload. */
|
|
2392
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
2393
|
+
/** Generic type parameters for this overload. */
|
|
2394
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2395
|
+
/** Parameter name like `T`. */
|
|
2396
|
+
name: z.ZodString;
|
|
2397
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2398
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2399
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2400
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2401
|
+
}, z.core.$strict>>>;
|
|
2402
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
2403
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2404
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
2405
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
2406
|
+
}, z.core.$strict>>>;
|
|
2407
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2408
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
2409
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2410
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
2411
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2412
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2413
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2414
|
+
description: z.ZodString;
|
|
2415
|
+
}, z.core.$strict>>>;
|
|
2416
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2417
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2418
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
2419
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2420
|
+
public: "public";
|
|
2421
|
+
protected: "protected";
|
|
2422
|
+
readonly: "readonly";
|
|
2423
|
+
static: "static";
|
|
2424
|
+
abstract: "abstract";
|
|
2425
|
+
getter: "getter";
|
|
2426
|
+
setter: "setter";
|
|
2427
|
+
}>>>;
|
|
2428
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
2429
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2430
|
+
/** Parameter name like `T`. */
|
|
2431
|
+
name: z.ZodString;
|
|
2432
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2433
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2434
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2435
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2436
|
+
}, z.core.$strict>>>;
|
|
2437
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2438
|
+
kind: z.ZodLiteral<"variable">;
|
|
2439
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
2440
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2441
|
+
/** Rune flavor when this field is initialized with a value-producing reactivity rune. */
|
|
2442
|
+
reactivity: z.ZodOptional<z.ZodEnum<{
|
|
2443
|
+
$state: "$state";
|
|
2444
|
+
"$state.raw": "$state.raw";
|
|
2445
|
+
$derived: "$derived";
|
|
2446
|
+
"$derived.by": "$derived.by";
|
|
2447
|
+
}>>;
|
|
2448
|
+
/** Default value documented via `@default`. Authoritative initializer (when human-readable) is in `typeSignature`. */
|
|
2449
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2450
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2451
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
2452
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2453
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
2454
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2455
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2456
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2457
|
+
description: z.ZodString;
|
|
2458
|
+
}, z.core.$strict>>>;
|
|
2459
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2460
|
+
name: z.ZodString;
|
|
2461
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2462
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
2463
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2464
|
+
public: "public";
|
|
2465
|
+
protected: "protected";
|
|
2466
|
+
readonly: "readonly";
|
|
2467
|
+
static: "static";
|
|
2468
|
+
abstract: "abstract";
|
|
2469
|
+
getter: "getter";
|
|
2470
|
+
setter: "setter";
|
|
2471
|
+
}>>>;
|
|
2472
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
2473
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2474
|
+
/** Parameter name like `T`. */
|
|
2475
|
+
name: z.ZodString;
|
|
2476
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2477
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2478
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2479
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2480
|
+
}, z.core.$strict>>>;
|
|
2481
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2482
|
+
kind: z.ZodLiteral<"constructor">;
|
|
2483
|
+
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
2484
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2485
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
2486
|
+
name: z.ZodString;
|
|
2487
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2488
|
+
type: z.ZodString;
|
|
2489
|
+
/** Whether the parameter has a `?` token. */
|
|
2490
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2491
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
2492
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2493
|
+
/** Description from `@param` tag. */
|
|
2494
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2495
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
2496
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2497
|
+
}, z.core.$strict>>>;
|
|
2498
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2499
|
+
/** Full TypeScript type signature for this overload. */
|
|
2500
|
+
typeSignature: z.ZodString;
|
|
2501
|
+
/** Parameters for this overload. */
|
|
2502
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2503
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
2504
|
+
name: z.ZodString;
|
|
2505
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2506
|
+
type: z.ZodString;
|
|
2507
|
+
/** Whether the parameter has a `?` token. */
|
|
2508
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2509
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
2510
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2511
|
+
/** Description from `@param` tag. */
|
|
2512
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2513
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
2514
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2515
|
+
}, z.core.$strict>>>;
|
|
2516
|
+
/** Return type for this overload. */
|
|
2517
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
2518
|
+
/** Generic type parameters for this overload. */
|
|
2519
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2520
|
+
/** Parameter name like `T`. */
|
|
2521
|
+
name: z.ZodString;
|
|
2522
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2523
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2524
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2525
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2526
|
+
}, z.core.$strict>>>;
|
|
2527
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
2528
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2529
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
2530
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
2531
|
+
}, z.core.$strict>>>;
|
|
2532
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2533
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
2534
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2535
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
2536
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2537
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2538
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2539
|
+
description: z.ZodString;
|
|
2540
|
+
}, z.core.$strict>>>;
|
|
2541
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2542
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2543
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
2544
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2545
|
+
public: "public";
|
|
2546
|
+
protected: "protected";
|
|
2547
|
+
readonly: "readonly";
|
|
2548
|
+
static: "static";
|
|
2549
|
+
abstract: "abstract";
|
|
2550
|
+
getter: "getter";
|
|
2551
|
+
setter: "setter";
|
|
2552
|
+
}>>>;
|
|
2553
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
2554
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2555
|
+
/** Parameter name like `T`. */
|
|
2556
|
+
name: z.ZodString;
|
|
2557
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2558
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2559
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2560
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2561
|
+
}, z.core.$strict>>>;
|
|
2562
|
+
}, z.core.$strict>], "kind">>>;
|
|
2563
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2564
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
2565
|
+
module: z.ZodString;
|
|
2566
|
+
name: z.ZodString;
|
|
2567
|
+
}, z.core.$strict>>;
|
|
2568
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2569
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
2570
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2571
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
2572
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2573
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2574
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2575
|
+
description: z.ZodString;
|
|
2576
|
+
}, z.core.$strict>>>;
|
|
2577
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2578
|
+
name: z.ZodString;
|
|
2579
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2580
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
2581
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2582
|
+
public: "public";
|
|
2583
|
+
protected: "protected";
|
|
2584
|
+
readonly: "readonly";
|
|
2585
|
+
static: "static";
|
|
2586
|
+
abstract: "abstract";
|
|
2587
|
+
getter: "getter";
|
|
2588
|
+
setter: "setter";
|
|
2589
|
+
}>>>;
|
|
2590
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
2591
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2592
|
+
/** Parameter name like `T`. */
|
|
2593
|
+
name: z.ZodString;
|
|
2594
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2595
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2596
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2597
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2598
|
+
}, z.core.$strict>>>;
|
|
2599
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2600
|
+
kind: z.ZodLiteral<"type">;
|
|
2601
|
+
/**
|
|
2602
|
+
* Types from intersection branches whose properties are all external (filtered out of `members`).
|
|
2603
|
+
*
|
|
2604
|
+
* @see `ComponentDeclarationJson.intersects`, `ClassDeclarationJson.extends`,
|
|
2605
|
+
* `ClassDeclarationJson.implements`, `InterfaceDeclarationJson.extends`
|
|
2606
|
+
* for sibling "related type identifiers" fields. Field shapes mirror TS syntax.
|
|
2607
|
+
*/
|
|
2608
|
+
intersects: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2609
|
+
/**
|
|
2610
|
+
* Type members: property signatures, method signatures, index signatures,
|
|
2611
|
+
* call/construct signatures.
|
|
2612
|
+
*/
|
|
2613
|
+
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2614
|
+
kind: z.ZodLiteral<"function">;
|
|
2615
|
+
/**
|
|
2616
|
+
* User-chosen identifier, or the literal `'(call)'` sentinel for
|
|
2617
|
+
* unnamed call signatures.
|
|
2618
|
+
*/
|
|
2619
|
+
name: z.ZodString;
|
|
2620
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
2621
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2622
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
2623
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
2624
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2625
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
2626
|
+
name: z.ZodString;
|
|
2627
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2628
|
+
type: z.ZodString;
|
|
2629
|
+
/** Whether the parameter has a `?` token. */
|
|
2630
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2631
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
2632
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2633
|
+
/** Description from `@param` tag. */
|
|
2634
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2635
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
2636
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2637
|
+
}, z.core.$strict>>>;
|
|
2638
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2639
|
+
/** Full TypeScript type signature for this overload. */
|
|
2640
|
+
typeSignature: z.ZodString;
|
|
2641
|
+
/** Parameters for this overload. */
|
|
2642
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2643
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
2644
|
+
name: z.ZodString;
|
|
2645
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2646
|
+
type: z.ZodString;
|
|
2647
|
+
/** Whether the parameter has a `?` token. */
|
|
2648
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2649
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
2650
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2651
|
+
/** Description from `@param` tag. */
|
|
2652
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2653
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
2654
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2655
|
+
}, z.core.$strict>>>;
|
|
2656
|
+
/** Return type for this overload. */
|
|
2657
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
2658
|
+
/** Generic type parameters for this overload. */
|
|
2659
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2660
|
+
/** Parameter name like `T`. */
|
|
2661
|
+
name: z.ZodString;
|
|
2662
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2663
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2664
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2665
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2666
|
+
}, z.core.$strict>>>;
|
|
2667
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
2668
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2669
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
2670
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
2671
|
+
}, z.core.$strict>>>;
|
|
2672
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2673
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
2674
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2675
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
2676
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2677
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2678
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2679
|
+
description: z.ZodString;
|
|
2680
|
+
}, z.core.$strict>>>;
|
|
2681
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2682
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2683
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
2684
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2685
|
+
public: "public";
|
|
2686
|
+
protected: "protected";
|
|
2687
|
+
readonly: "readonly";
|
|
2688
|
+
static: "static";
|
|
2689
|
+
abstract: "abstract";
|
|
2690
|
+
getter: "getter";
|
|
2691
|
+
setter: "setter";
|
|
2692
|
+
}>>>;
|
|
2693
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
2694
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2695
|
+
/** Parameter name like `T`. */
|
|
2696
|
+
name: z.ZodString;
|
|
2697
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2698
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2699
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2700
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2701
|
+
}, z.core.$strict>>>;
|
|
2702
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2703
|
+
kind: z.ZodLiteral<"variable">;
|
|
2704
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
2705
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2706
|
+
/** Rune flavor when this field is initialized with a value-producing reactivity rune. */
|
|
2707
|
+
reactivity: z.ZodOptional<z.ZodEnum<{
|
|
2708
|
+
$state: "$state";
|
|
2709
|
+
"$state.raw": "$state.raw";
|
|
2710
|
+
$derived: "$derived";
|
|
2711
|
+
"$derived.by": "$derived.by";
|
|
2712
|
+
}>>;
|
|
2713
|
+
/** Default value documented via `@default`. Authoritative initializer (when human-readable) is in `typeSignature`. */
|
|
2714
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2715
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2716
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
2717
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2718
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
2719
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2720
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2721
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2722
|
+
description: z.ZodString;
|
|
2723
|
+
}, z.core.$strict>>>;
|
|
2724
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2725
|
+
name: z.ZodString;
|
|
2726
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2727
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
2728
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2729
|
+
public: "public";
|
|
2730
|
+
protected: "protected";
|
|
2731
|
+
readonly: "readonly";
|
|
2732
|
+
static: "static";
|
|
2733
|
+
abstract: "abstract";
|
|
2734
|
+
getter: "getter";
|
|
2735
|
+
setter: "setter";
|
|
2736
|
+
}>>>;
|
|
2737
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
2738
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2739
|
+
/** Parameter name like `T`. */
|
|
2740
|
+
name: z.ZodString;
|
|
2741
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2742
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2743
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2744
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2745
|
+
}, z.core.$strict>>>;
|
|
2746
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2747
|
+
kind: z.ZodLiteral<"constructor">;
|
|
2748
|
+
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
2749
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2750
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
2751
|
+
name: z.ZodString;
|
|
2752
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2753
|
+
type: z.ZodString;
|
|
2754
|
+
/** Whether the parameter has a `?` token. */
|
|
2755
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2756
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
2757
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2758
|
+
/** Description from `@param` tag. */
|
|
2759
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2760
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
2761
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2762
|
+
}, z.core.$strict>>>;
|
|
2763
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2764
|
+
/** Full TypeScript type signature for this overload. */
|
|
2765
|
+
typeSignature: z.ZodString;
|
|
2766
|
+
/** Parameters for this overload. */
|
|
2767
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2768
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
2769
|
+
name: z.ZodString;
|
|
2770
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2771
|
+
type: z.ZodString;
|
|
2772
|
+
/** Whether the parameter has a `?` token. */
|
|
2773
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2774
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
2775
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2776
|
+
/** Description from `@param` tag. */
|
|
2777
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2778
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
2779
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2780
|
+
}, z.core.$strict>>>;
|
|
2781
|
+
/** Return type for this overload. */
|
|
2782
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
2783
|
+
/** Generic type parameters for this overload. */
|
|
2784
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2785
|
+
/** Parameter name like `T`. */
|
|
2786
|
+
name: z.ZodString;
|
|
2787
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2788
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2789
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2790
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2791
|
+
}, z.core.$strict>>>;
|
|
2792
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
2793
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2794
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
2795
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
2796
|
+
}, z.core.$strict>>>;
|
|
2797
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2798
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
2799
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2800
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
2801
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2802
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2803
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2804
|
+
description: z.ZodString;
|
|
2805
|
+
}, z.core.$strict>>>;
|
|
2806
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2807
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2808
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
2809
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2810
|
+
public: "public";
|
|
2811
|
+
protected: "protected";
|
|
2812
|
+
readonly: "readonly";
|
|
2813
|
+
static: "static";
|
|
2814
|
+
abstract: "abstract";
|
|
2815
|
+
getter: "getter";
|
|
2816
|
+
setter: "setter";
|
|
2817
|
+
}>>>;
|
|
2818
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
2819
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2820
|
+
/** Parameter name like `T`. */
|
|
2821
|
+
name: z.ZodString;
|
|
2822
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2823
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2824
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2825
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2826
|
+
}, z.core.$strict>>>;
|
|
2827
|
+
}, z.core.$strict>], "kind">>>;
|
|
2828
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2829
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
2830
|
+
module: z.ZodString;
|
|
2831
|
+
name: z.ZodString;
|
|
2832
|
+
}, z.core.$strict>>;
|
|
2833
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2834
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
2835
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2836
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
2837
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2838
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2839
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2840
|
+
description: z.ZodString;
|
|
2841
|
+
}, z.core.$strict>>>;
|
|
2842
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2843
|
+
name: z.ZodString;
|
|
2844
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2845
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
2846
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2847
|
+
public: "public";
|
|
2848
|
+
protected: "protected";
|
|
2849
|
+
readonly: "readonly";
|
|
2850
|
+
static: "static";
|
|
2851
|
+
abstract: "abstract";
|
|
2852
|
+
getter: "getter";
|
|
2853
|
+
setter: "setter";
|
|
2854
|
+
}>>>;
|
|
2855
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
2856
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2857
|
+
/** Parameter name like `T`. */
|
|
2858
|
+
name: z.ZodString;
|
|
2859
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2860
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2861
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2862
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2863
|
+
}, z.core.$strict>>>;
|
|
2864
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2865
|
+
kind: z.ZodLiteral<"variable">;
|
|
2866
|
+
/** Rune flavor when this variable is initialized with a value-producing reactivity rune. */
|
|
2867
|
+
reactivity: z.ZodOptional<z.ZodEnum<{
|
|
2868
|
+
$state: "$state";
|
|
2869
|
+
"$state.raw": "$state.raw";
|
|
2870
|
+
$derived: "$derived";
|
|
2871
|
+
"$derived.by": "$derived.by";
|
|
2872
|
+
}>>;
|
|
2873
|
+
/** Default value documented via `@default`. Useful when the AST initializer is opaque (a call expression, computed value) and the author wants to document the conceptual default. */
|
|
2874
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2875
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2876
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
2877
|
+
module: z.ZodString;
|
|
2878
|
+
name: z.ZodString;
|
|
2879
|
+
}, z.core.$strict>>;
|
|
2880
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2881
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
2882
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2883
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
2884
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2885
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2886
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2887
|
+
description: z.ZodString;
|
|
2888
|
+
}, z.core.$strict>>>;
|
|
2889
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2890
|
+
name: z.ZodString;
|
|
2891
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2892
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
2893
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2894
|
+
public: "public";
|
|
2895
|
+
protected: "protected";
|
|
2896
|
+
readonly: "readonly";
|
|
2897
|
+
static: "static";
|
|
2898
|
+
abstract: "abstract";
|
|
2899
|
+
getter: "getter";
|
|
2900
|
+
setter: "setter";
|
|
2901
|
+
}>>>;
|
|
2902
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
2903
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2904
|
+
/** Parameter name like `T`. */
|
|
2905
|
+
name: z.ZodString;
|
|
2906
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2907
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2908
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2909
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2910
|
+
}, z.core.$strict>>>;
|
|
2911
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2912
|
+
kind: z.ZodLiteral<"enum">;
|
|
2913
|
+
/** Enum members: name/value pairs with optional JSDoc. */
|
|
2914
|
+
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2915
|
+
kind: z.ZodLiteral<"function">;
|
|
2916
|
+
/**
|
|
2917
|
+
* User-chosen identifier, or the literal `'(call)'` sentinel for
|
|
2918
|
+
* unnamed call signatures.
|
|
2919
|
+
*/
|
|
2920
|
+
name: z.ZodString;
|
|
2921
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
2922
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2923
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
2924
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
2925
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2926
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
2927
|
+
name: z.ZodString;
|
|
2928
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2929
|
+
type: z.ZodString;
|
|
2930
|
+
/** Whether the parameter has a `?` token. */
|
|
2931
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2932
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
2933
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2934
|
+
/** Description from `@param` tag. */
|
|
2935
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2936
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
2937
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2938
|
+
}, z.core.$strict>>>;
|
|
2939
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2940
|
+
/** Full TypeScript type signature for this overload. */
|
|
2941
|
+
typeSignature: z.ZodString;
|
|
2942
|
+
/** Parameters for this overload. */
|
|
2943
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2944
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
2945
|
+
name: z.ZodString;
|
|
2946
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
2947
|
+
type: z.ZodString;
|
|
2948
|
+
/** Whether the parameter has a `?` token. */
|
|
2949
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
2950
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
2951
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
2952
|
+
/** Description from `@param` tag. */
|
|
2953
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2954
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
2955
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
2956
|
+
}, z.core.$strict>>>;
|
|
2957
|
+
/** Return type for this overload. */
|
|
2958
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
2959
|
+
/** Generic type parameters for this overload. */
|
|
2960
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2961
|
+
/** Parameter name like `T`. */
|
|
2962
|
+
name: z.ZodString;
|
|
2963
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2964
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
2965
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
2966
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
2967
|
+
}, z.core.$strict>>>;
|
|
2968
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
2969
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2970
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
2971
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
2972
|
+
}, z.core.$strict>>>;
|
|
2973
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2974
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
2975
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2976
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
2977
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2978
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2979
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2980
|
+
description: z.ZodString;
|
|
2981
|
+
}, z.core.$strict>>>;
|
|
2982
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2983
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
2984
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
2985
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2986
|
+
public: "public";
|
|
2987
|
+
protected: "protected";
|
|
2988
|
+
readonly: "readonly";
|
|
2989
|
+
static: "static";
|
|
2990
|
+
abstract: "abstract";
|
|
2991
|
+
getter: "getter";
|
|
2992
|
+
setter: "setter";
|
|
2993
|
+
}>>>;
|
|
2994
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
2995
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2996
|
+
/** Parameter name like `T`. */
|
|
2997
|
+
name: z.ZodString;
|
|
2998
|
+
/** Constraint like `string` from `T extends string`. */
|
|
2999
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
3000
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
3001
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
3002
|
+
}, z.core.$strict>>>;
|
|
3003
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3004
|
+
kind: z.ZodLiteral<"variable">;
|
|
3005
|
+
/** Whether the member has a `?` token in its declaration. */
|
|
3006
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
3007
|
+
/** Rune flavor when this field is initialized with a value-producing reactivity rune. */
|
|
3008
|
+
reactivity: z.ZodOptional<z.ZodEnum<{
|
|
3009
|
+
$state: "$state";
|
|
3010
|
+
"$state.raw": "$state.raw";
|
|
3011
|
+
$derived: "$derived";
|
|
3012
|
+
"$derived.by": "$derived.by";
|
|
3013
|
+
}>>;
|
|
3014
|
+
/** Default value documented via `@default`. Authoritative initializer (when human-readable) is in `typeSignature`. */
|
|
3015
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3016
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3017
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
3018
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3019
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
3020
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3021
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3022
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3023
|
+
description: z.ZodString;
|
|
3024
|
+
}, z.core.$strict>>>;
|
|
3025
|
+
since: z.ZodOptional<z.ZodString>;
|
|
3026
|
+
name: z.ZodString;
|
|
3027
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
3028
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
3029
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
3030
|
+
public: "public";
|
|
3031
|
+
protected: "protected";
|
|
3032
|
+
readonly: "readonly";
|
|
3033
|
+
static: "static";
|
|
3034
|
+
abstract: "abstract";
|
|
3035
|
+
getter: "getter";
|
|
3036
|
+
setter: "setter";
|
|
3037
|
+
}>>>;
|
|
3038
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
3039
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3040
|
+
/** Parameter name like `T`. */
|
|
3041
|
+
name: z.ZodString;
|
|
3042
|
+
/** Constraint like `string` from `T extends string`. */
|
|
3043
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
3044
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
3045
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
3046
|
+
}, z.core.$strict>>>;
|
|
3047
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3048
|
+
kind: z.ZodLiteral<"constructor">;
|
|
3049
|
+
name: z.ZodUnion<readonly [z.ZodLiteral<"constructor">, z.ZodLiteral<"(construct)">]>;
|
|
3050
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3051
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
3052
|
+
name: z.ZodString;
|
|
3053
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
3054
|
+
type: z.ZodString;
|
|
3055
|
+
/** Whether the parameter has a `?` token. */
|
|
3056
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
3057
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
3058
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
3059
|
+
/** Description from `@param` tag. */
|
|
3060
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3061
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
3062
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3063
|
+
}, z.core.$strict>>>;
|
|
3064
|
+
overloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3065
|
+
/** Full TypeScript type signature for this overload. */
|
|
3066
|
+
typeSignature: z.ZodString;
|
|
3067
|
+
/** Parameters for this overload. */
|
|
3068
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3069
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
3070
|
+
name: z.ZodString;
|
|
3071
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
3072
|
+
type: z.ZodString;
|
|
3073
|
+
/** Whether the parameter has a `?` token. */
|
|
3074
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
3075
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
3076
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
3077
|
+
/** Description from `@param` tag. */
|
|
3078
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3079
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
3080
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3081
|
+
}, z.core.$strict>>>;
|
|
3082
|
+
/** Return type for this overload. */
|
|
3083
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
3084
|
+
/** Generic type parameters for this overload. */
|
|
3085
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3086
|
+
/** Parameter name like `T`. */
|
|
3087
|
+
name: z.ZodString;
|
|
3088
|
+
/** Constraint like `string` from `T extends string`. */
|
|
3089
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
3090
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
3091
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
3092
|
+
}, z.core.$strict>>>;
|
|
3093
|
+
/** JSDoc/TSDoc comment specific to this overload. */
|
|
3094
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
3095
|
+
/** Return value description from `@returns` tag on this overload. */
|
|
3096
|
+
returnDescription: z.ZodOptional<z.ZodString>;
|
|
3097
|
+
}, z.core.$strict>>>;
|
|
3098
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3099
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
3100
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3101
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
3102
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3103
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3104
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3105
|
+
description: z.ZodString;
|
|
3106
|
+
}, z.core.$strict>>>;
|
|
3107
|
+
since: z.ZodOptional<z.ZodString>;
|
|
3108
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
3109
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
3110
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
3111
|
+
public: "public";
|
|
3112
|
+
protected: "protected";
|
|
3113
|
+
readonly: "readonly";
|
|
3114
|
+
static: "static";
|
|
3115
|
+
abstract: "abstract";
|
|
3116
|
+
getter: "getter";
|
|
3117
|
+
setter: "setter";
|
|
3118
|
+
}>>>;
|
|
3119
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
3120
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3121
|
+
/** Parameter name like `T`. */
|
|
3122
|
+
name: z.ZodString;
|
|
3123
|
+
/** Constraint like `string` from `T extends string`. */
|
|
3124
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
3125
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
3126
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
3127
|
+
}, z.core.$strict>>>;
|
|
3128
|
+
}, z.core.$strict>], "kind">>>;
|
|
3129
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3130
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
3131
|
+
module: z.ZodString;
|
|
3132
|
+
name: z.ZodString;
|
|
3133
|
+
}, z.core.$strict>>;
|
|
3134
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3135
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
3136
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3137
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
3138
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3139
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3140
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3141
|
+
description: z.ZodString;
|
|
3142
|
+
}, z.core.$strict>>>;
|
|
3143
|
+
since: z.ZodOptional<z.ZodString>;
|
|
3144
|
+
name: z.ZodString;
|
|
3145
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
3146
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
3147
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
3148
|
+
public: "public";
|
|
3149
|
+
protected: "protected";
|
|
3150
|
+
readonly: "readonly";
|
|
3151
|
+
static: "static";
|
|
3152
|
+
abstract: "abstract";
|
|
3153
|
+
getter: "getter";
|
|
3154
|
+
setter: "setter";
|
|
3155
|
+
}>>>;
|
|
3156
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
3157
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3158
|
+
/** Parameter name like `T`. */
|
|
3159
|
+
name: z.ZodString;
|
|
3160
|
+
/** Constraint like `string` from `T extends string`. */
|
|
3161
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
3162
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
3163
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
3164
|
+
}, z.core.$strict>>>;
|
|
3165
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3166
|
+
kind: z.ZodLiteral<"component">;
|
|
3167
|
+
/**
|
|
3168
|
+
* Types from intersection branches whose properties are all external (filtered out of `props`).
|
|
3169
|
+
*
|
|
3170
|
+
* @see `TypeDeclarationJson.intersects`, `ClassDeclarationJson.extends`,
|
|
3171
|
+
* `ClassDeclarationJson.implements`, `InterfaceDeclarationJson.extends`
|
|
3172
|
+
* for sibling "related type identifiers" fields. Field shapes mirror TS syntax.
|
|
3173
|
+
*/
|
|
3174
|
+
intersects: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3175
|
+
/** Svelte component props. */
|
|
3176
|
+
props: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3177
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3178
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
3179
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3180
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3181
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3182
|
+
description: z.ZodString;
|
|
3183
|
+
}, z.core.$strict>>>;
|
|
3184
|
+
since: z.ZodOptional<z.ZodString>;
|
|
3185
|
+
/** Prop name as declared in the component's `$props()` type. */
|
|
3186
|
+
name: z.ZodString;
|
|
3187
|
+
/** Resolved TypeScript type string. */
|
|
3188
|
+
type: z.ZodString;
|
|
3189
|
+
/** Whether the prop is optional in the component's props type. */
|
|
3190
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
3191
|
+
/** Description from JSDoc on the prop's type declaration. */
|
|
3192
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3193
|
+
/** Default value expression from destructuring or `@default` tag. */
|
|
3194
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3195
|
+
/** Whether the prop uses the `$bindable()` rune, enabling two-way binding. */
|
|
3196
|
+
bindable: z.ZodDefault<z.ZodBoolean>;
|
|
3197
|
+
/**
|
|
3198
|
+
* Structured parameters for callable props (e.g., `Snippet<[text: string]>`).
|
|
3199
|
+
*
|
|
3200
|
+
* Present when the prop has extractable parameters, absent otherwise.
|
|
3201
|
+
* Only populated when there are actual parameters — bare `Snippet` / `Snippet<[]>`
|
|
3202
|
+
* does not set this field. Intentionally `.optional()` rather than
|
|
3203
|
+
* `.default([])` (see the array-field policy note above): absence is a
|
|
3204
|
+
* meaningful signal, not an empty list.
|
|
3205
|
+
*/
|
|
3206
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3207
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
3208
|
+
name: z.ZodString;
|
|
3209
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
3210
|
+
type: z.ZodString;
|
|
3211
|
+
/** Whether the parameter has a `?` token. */
|
|
3212
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
3213
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
3214
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
3215
|
+
/** Description from `@param` tag. */
|
|
3216
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3217
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
3218
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3219
|
+
}, z.core.$strict>>>;
|
|
3220
|
+
}, z.core.$strict>>>;
|
|
3221
|
+
/** Whether the component accepts children (explicit `children` prop, inherited, or implicit template usage). */
|
|
3222
|
+
acceptsChildren: z.ZodDefault<z.ZodBoolean>;
|
|
3223
|
+
/** Script language. `undefined` means TypeScript (default), `'js'` for JavaScript-only components. */
|
|
3224
|
+
lang: z.ZodOptional<z.ZodEnum<{
|
|
3225
|
+
js: "js";
|
|
3226
|
+
}>>;
|
|
3227
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3228
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
3229
|
+
module: z.ZodString;
|
|
3230
|
+
name: z.ZodString;
|
|
3231
|
+
}, z.core.$strict>>;
|
|
3232
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3233
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
3234
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3235
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
3236
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3237
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3238
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3239
|
+
description: z.ZodString;
|
|
3240
|
+
}, z.core.$strict>>>;
|
|
3241
|
+
since: z.ZodOptional<z.ZodString>;
|
|
3242
|
+
name: z.ZodString;
|
|
3243
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
3244
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
3245
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
3246
|
+
public: "public";
|
|
3247
|
+
protected: "protected";
|
|
3248
|
+
readonly: "readonly";
|
|
3249
|
+
static: "static";
|
|
3250
|
+
abstract: "abstract";
|
|
3251
|
+
getter: "getter";
|
|
3252
|
+
setter: "setter";
|
|
3253
|
+
}>>>;
|
|
3254
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
3255
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3256
|
+
/** Parameter name like `T`. */
|
|
3257
|
+
name: z.ZodString;
|
|
3258
|
+
/** Constraint like `string` from `T extends string`. */
|
|
3259
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
3260
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
3261
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
3262
|
+
}, z.core.$strict>>>;
|
|
3263
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3264
|
+
kind: z.ZodLiteral<"snippet">;
|
|
3265
|
+
/** Snippet parameters. */
|
|
3266
|
+
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3267
|
+
/** Parameter name (e.g., `options`, `...args`). */
|
|
3268
|
+
name: z.ZodString;
|
|
3269
|
+
/** Resolved TypeScript type string (e.g., `string`, `Record<string, unknown>`). */
|
|
3270
|
+
type: z.ZodString;
|
|
3271
|
+
/** Whether the parameter has a `?` token. */
|
|
3272
|
+
optional: z.ZodDefault<z.ZodBoolean>;
|
|
3273
|
+
/** Whether the parameter uses rest syntax (`...args`). */
|
|
3274
|
+
rest: z.ZodDefault<z.ZodBoolean>;
|
|
3275
|
+
/** Description from `@param` tag. */
|
|
3276
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3277
|
+
/** Default value expression from the source (e.g., `'hello'`, `42`). */
|
|
3278
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
3279
|
+
}, z.core.$strict>>>;
|
|
3280
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3281
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
3282
|
+
module: z.ZodString;
|
|
3283
|
+
name: z.ZodString;
|
|
3284
|
+
}, z.core.$strict>>;
|
|
3285
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3286
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
3287
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3288
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
3289
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3290
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3291
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3292
|
+
description: z.ZodString;
|
|
3293
|
+
}, z.core.$strict>>>;
|
|
3294
|
+
since: z.ZodOptional<z.ZodString>;
|
|
3295
|
+
name: z.ZodString;
|
|
3296
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
3297
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
3298
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
3299
|
+
public: "public";
|
|
3300
|
+
protected: "protected";
|
|
3301
|
+
readonly: "readonly";
|
|
3302
|
+
static: "static";
|
|
3303
|
+
abstract: "abstract";
|
|
3304
|
+
getter: "getter";
|
|
3305
|
+
setter: "setter";
|
|
3306
|
+
}>>>;
|
|
3307
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
3308
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3309
|
+
/** Parameter name like `T`. */
|
|
3310
|
+
name: z.ZodString;
|
|
3311
|
+
/** Constraint like `string` from `T extends string`. */
|
|
3312
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
3313
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
3314
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
3315
|
+
}, z.core.$strict>>>;
|
|
3316
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3317
|
+
kind: z.ZodLiteral<"namespace">;
|
|
3318
|
+
/** Source module path (relative to `sourceRoot`) projected under this binding. */
|
|
3319
|
+
module: z.ZodString;
|
|
3320
|
+
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3321
|
+
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
3322
|
+
module: z.ZodString;
|
|
3323
|
+
name: z.ZodString;
|
|
3324
|
+
}, z.core.$strict>>;
|
|
3325
|
+
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3326
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
3327
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3328
|
+
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
3329
|
+
seeAlso: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3330
|
+
throws: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3331
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3332
|
+
description: z.ZodString;
|
|
3333
|
+
}, z.core.$strict>>>;
|
|
3334
|
+
since: z.ZodOptional<z.ZodString>;
|
|
3335
|
+
name: z.ZodString;
|
|
3336
|
+
docComment: z.ZodOptional<z.ZodString>;
|
|
3337
|
+
typeSignature: z.ZodOptional<z.ZodString>;
|
|
3338
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
3339
|
+
public: "public";
|
|
3340
|
+
protected: "protected";
|
|
3341
|
+
readonly: "readonly";
|
|
3342
|
+
static: "static";
|
|
3343
|
+
abstract: "abstract";
|
|
3344
|
+
getter: "getter";
|
|
3345
|
+
setter: "setter";
|
|
3346
|
+
}>>>;
|
|
3347
|
+
sourceLine: z.ZodOptional<z.ZodNumber>;
|
|
3348
|
+
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3349
|
+
/** Parameter name like `T`. */
|
|
3350
|
+
name: z.ZodString;
|
|
3351
|
+
/** Constraint like `string` from `T extends string`. */
|
|
3352
|
+
constraint: z.ZodOptional<z.ZodString>;
|
|
3353
|
+
/** Default type like `unknown` from `T = unknown`. */
|
|
3354
|
+
defaultType: z.ZodOptional<z.ZodString>;
|
|
3355
|
+
}, z.core.$strict>>>;
|
|
3356
|
+
}, z.core.$strict>], "kind">>>;
|
|
3357
|
+
/** File-level JSDoc comment (from `@module` tag). */
|
|
3358
|
+
moduleComment: z.ZodOptional<z.ZodString>;
|
|
3359
|
+
/** Modules this imports (paths relative to `sourceRoot`). */
|
|
3360
|
+
dependencies: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3361
|
+
/** Modules that import this (paths relative to `sourceRoot`). */
|
|
3362
|
+
dependents: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3363
|
+
/**
|
|
3364
|
+
* Modules fully re-exported via `export * from './module'`.
|
|
3365
|
+
* Paths are relative to `sourceRoot`.
|
|
3366
|
+
*/
|
|
3367
|
+
starExports: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3368
|
+
/**
|
|
3369
|
+
* Whether the module is a placeholder for a file that couldn't be analyzed.
|
|
3370
|
+
*
|
|
3371
|
+
* Currently only set for Svelte files where svelte2tsx threw at ingest
|
|
3372
|
+
* (the `transform_failed` diagnostic carries the error). Placeholder
|
|
3373
|
+
* modules have `declarations: []` and serve as a structural slot so the
|
|
3374
|
+
* `modules` array reflects the full owned set; consumers render them as
|
|
3375
|
+
* "broken" entries.
|
|
3376
|
+
*/
|
|
3377
|
+
partial: z.ZodDefault<z.ZodBoolean>;
|
|
3378
|
+
}, z.core.$strict>;
|
|
3379
|
+
export type ModuleJson = z.infer<typeof ModuleJson>;
|
|
3380
|
+
export type ModuleJsonInput = z.input<typeof ModuleJson>;
|
|
3381
|
+
//# sourceMappingURL=types.d.ts.map
|