svelte-docinfo 0.5.4 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -50
- package/dist/analyze-core.d.ts +179 -24
- package/dist/analyze-core.d.ts.map +1 -1
- package/dist/analyze-core.js +462 -42
- package/dist/analyze.d.ts +31 -6
- package/dist/analyze.d.ts.map +1 -1
- package/dist/analyze.js +29 -9
- package/dist/cli.d.ts +17 -7
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +12 -9
- package/dist/declaration-build.d.ts +14 -4
- package/dist/declaration-build.d.ts.map +1 -1
- package/dist/declaration-helpers.d.ts +65 -42
- package/dist/declaration-helpers.d.ts.map +1 -1
- package/dist/declaration-helpers.js +167 -72
- package/dist/dep-resolver.d.ts +38 -13
- package/dist/dep-resolver.d.ts.map +1 -1
- package/dist/dep-resolver.js +40 -22
- package/dist/diagnostics.d.ts +365 -14
- package/dist/diagnostics.d.ts.map +1 -1
- package/dist/diagnostics.js +112 -28
- package/dist/discovery.d.ts +7 -2
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +11 -5
- package/dist/exports.d.ts +39 -2
- package/dist/exports.d.ts.map +1 -1
- package/dist/exports.js +251 -46
- package/dist/files.d.ts +14 -2
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +49 -8
- package/dist/index.d.ts +9 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -4
- package/dist/logo.js +3 -3
- package/dist/paths.d.ts +22 -1
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +22 -1
- package/dist/postprocess.d.ts +31 -10
- package/dist/postprocess.d.ts.map +1 -1
- package/dist/postprocess.js +124 -76
- package/dist/session.d.ts +101 -11
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +457 -127
- package/dist/source-config.d.ts +210 -33
- package/dist/source-config.d.ts.map +1 -1
- package/dist/source-config.js +313 -26
- package/dist/source.d.ts +35 -0
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +37 -0
- package/dist/svelte.d.ts +81 -23
- package/dist/svelte.d.ts.map +1 -1
- package/dist/svelte.js +686 -359
- package/dist/tsdoc.d.ts +47 -12
- package/dist/tsdoc.d.ts.map +1 -1
- package/dist/tsdoc.js +70 -17
- package/dist/types.d.ts +967 -45
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +259 -48
- package/dist/typescript-alias-registry.d.ts +76 -0
- package/dist/typescript-alias-registry.d.ts.map +1 -0
- package/dist/typescript-alias-registry.js +206 -0
- package/dist/typescript-exports.d.ts +20 -15
- package/dist/typescript-exports.d.ts.map +1 -1
- package/dist/typescript-exports.js +264 -137
- package/dist/typescript-extract-class.d.ts +3 -4
- package/dist/typescript-extract-class.d.ts.map +1 -1
- package/dist/typescript-extract-class.js +71 -52
- package/dist/typescript-extract-function.d.ts +6 -8
- package/dist/typescript-extract-function.d.ts.map +1 -1
- package/dist/typescript-extract-function.js +20 -15
- package/dist/typescript-extract-shared.d.ts +309 -29
- package/dist/typescript-extract-shared.d.ts.map +1 -1
- package/dist/typescript-extract-shared.js +957 -127
- package/dist/typescript-extract-type-json.d.ts +286 -0
- package/dist/typescript-extract-type-json.d.ts.map +1 -0
- package/dist/typescript-extract-type-json.js +854 -0
- package/dist/typescript-extract-type-properties.d.ts +2 -3
- package/dist/typescript-extract-type-properties.d.ts.map +1 -1
- package/dist/typescript-extract-type-properties.js +91 -84
- package/dist/typescript-extract-type.d.ts +6 -8
- package/dist/typescript-extract-type.d.ts.map +1 -1
- package/dist/typescript-extract-type.js +138 -40
- package/dist/typescript-program.d.ts +106 -23
- package/dist/typescript-program.d.ts.map +1 -1
- package/dist/typescript-program.js +182 -54
- package/dist/vite.d.ts +23 -8
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +34 -14
- package/package.json +17 -15
- package/virtual-svelte-docinfo.d.ts +1 -1
package/dist/analyze-core.d.ts
CHANGED
|
@@ -17,8 +17,16 @@
|
|
|
17
17
|
* - `AnalyzeResultJson` / `OnDuplicates` / `OnDuplicatesCallback` — shared types
|
|
18
18
|
* surfaced through the main barrel directly from this module.
|
|
19
19
|
* - `throwOnDuplicates` — convenience callback paired with `OnDuplicates`.
|
|
20
|
+
* - `finalizeDiagnostics` — the diagnostic boundary passes (virtual position
|
|
21
|
+
* remap, then path normalization) in their required order; the one call for
|
|
22
|
+
* callers assembling modules themselves.
|
|
20
23
|
* - `normalizeDiagnosticPaths` — boundary helper for build-tool integrations
|
|
21
24
|
* that bypass the session and collect their own diagnostics.
|
|
25
|
+
* - `normalizeModulePathsInTypes` — output pass rewriting the absolute module
|
|
26
|
+
* paths the checker embeds in printed type text. Runs inside `analyzeCore`;
|
|
27
|
+
* exposed for the same reason as `normalizeDiagnosticPaths`, so a caller
|
|
28
|
+
* assembling modules itself through `analyzeModule` can meet the same
|
|
29
|
+
* output contract.
|
|
22
30
|
*
|
|
23
31
|
* @internal — module split is implementation detail; consumers go through
|
|
24
32
|
* `analyze.ts` / `session.ts` for the stable surface.
|
|
@@ -33,6 +41,7 @@ import type { AnalysisLog } from './log.js';
|
|
|
33
41
|
import { type SvelteVirtualFile } from './svelte.js';
|
|
34
42
|
import { type SourceFileInfo } from './source.js';
|
|
35
43
|
import { type ModuleSourceOptions } from './source-config.js';
|
|
44
|
+
import type { AliasRegistry } from './typescript-extract-type-json.js';
|
|
36
45
|
import { type DuplicateDeclaration } from './postprocess.js';
|
|
37
46
|
/**
|
|
38
47
|
* Custom callback for handling duplicate declaration names.
|
|
@@ -105,10 +114,12 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
105
114
|
declarations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
106
115
|
kind: z.ZodLiteral<"function">;
|
|
107
116
|
returnType: z.ZodOptional<z.ZodString>;
|
|
117
|
+
returnTypeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
108
118
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
109
119
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
110
120
|
name: z.ZodString;
|
|
111
121
|
type: z.ZodString;
|
|
122
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
112
123
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
113
124
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
114
125
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -120,6 +131,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
120
131
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
121
132
|
name: z.ZodString;
|
|
122
133
|
type: z.ZodString;
|
|
134
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
123
135
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
124
136
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
125
137
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -127,6 +139,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
127
139
|
propertyDescriptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
128
140
|
}, z.core.$strict>>>;
|
|
129
141
|
returnType: z.ZodOptional<z.ZodString>;
|
|
142
|
+
returnTypeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
130
143
|
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
131
144
|
name: z.ZodString;
|
|
132
145
|
constraint: z.ZodOptional<z.ZodString>;
|
|
@@ -140,6 +153,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
140
153
|
module: z.ZodString;
|
|
141
154
|
name: z.ZodString;
|
|
142
155
|
}, z.core.$strict>>;
|
|
156
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
143
157
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
144
158
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
145
159
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -170,17 +184,21 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
170
184
|
}, z.core.$strict>>>;
|
|
171
185
|
}, z.core.$strict>, z.ZodObject<{
|
|
172
186
|
kind: z.ZodLiteral<"class">;
|
|
173
|
-
extends: z.
|
|
187
|
+
extends: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
188
|
+
externalTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
174
189
|
implements: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
175
190
|
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
176
191
|
kind: z.ZodLiteral<"function">;
|
|
177
192
|
name: z.ZodString;
|
|
178
193
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
194
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
179
195
|
returnType: z.ZodOptional<z.ZodString>;
|
|
196
|
+
returnTypeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
180
197
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
181
198
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
182
199
|
name: z.ZodString;
|
|
183
200
|
type: z.ZodString;
|
|
201
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
184
202
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
185
203
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
186
204
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -192,6 +210,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
192
210
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
193
211
|
name: z.ZodString;
|
|
194
212
|
type: z.ZodString;
|
|
213
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
195
214
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
196
215
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
197
216
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -199,6 +218,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
199
218
|
propertyDescriptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
200
219
|
}, z.core.$strict>>>;
|
|
201
220
|
returnType: z.ZodOptional<z.ZodString>;
|
|
221
|
+
returnTypeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
202
222
|
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
203
223
|
name: z.ZodString;
|
|
204
224
|
constraint: z.ZodOptional<z.ZodString>;
|
|
@@ -207,6 +227,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
207
227
|
docComment: z.ZodOptional<z.ZodString>;
|
|
208
228
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
209
229
|
}, z.core.$strict>>>;
|
|
230
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
210
231
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
211
232
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
212
233
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -244,6 +265,8 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
244
265
|
"$derived.by": "$derived.by";
|
|
245
266
|
}>>;
|
|
246
267
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
268
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
269
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
247
270
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
248
271
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
249
272
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -278,6 +301,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
278
301
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
279
302
|
name: z.ZodString;
|
|
280
303
|
type: z.ZodString;
|
|
304
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
281
305
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
282
306
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
283
307
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -289,6 +313,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
289
313
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
290
314
|
name: z.ZodString;
|
|
291
315
|
type: z.ZodString;
|
|
316
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
292
317
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
293
318
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
294
319
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -296,6 +321,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
296
321
|
propertyDescriptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
297
322
|
}, z.core.$strict>>>;
|
|
298
323
|
returnType: z.ZodOptional<z.ZodString>;
|
|
324
|
+
returnTypeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
299
325
|
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
300
326
|
name: z.ZodString;
|
|
301
327
|
constraint: z.ZodOptional<z.ZodString>;
|
|
@@ -304,6 +330,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
304
330
|
docComment: z.ZodOptional<z.ZodString>;
|
|
305
331
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
306
332
|
}, z.core.$strict>>>;
|
|
333
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
307
334
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
308
335
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
309
336
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -337,6 +364,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
337
364
|
module: z.ZodString;
|
|
338
365
|
name: z.ZodString;
|
|
339
366
|
}, z.core.$strict>>;
|
|
367
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
340
368
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
341
369
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
342
370
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -368,15 +396,19 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
368
396
|
}, z.core.$strict>, z.ZodObject<{
|
|
369
397
|
kind: z.ZodLiteral<"interface">;
|
|
370
398
|
extends: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
399
|
+
externalTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
371
400
|
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
372
401
|
kind: z.ZodLiteral<"function">;
|
|
373
402
|
name: z.ZodString;
|
|
374
403
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
404
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
375
405
|
returnType: z.ZodOptional<z.ZodString>;
|
|
406
|
+
returnTypeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
376
407
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
377
408
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
378
409
|
name: z.ZodString;
|
|
379
410
|
type: z.ZodString;
|
|
411
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
380
412
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
381
413
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
382
414
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -388,6 +420,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
388
420
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
389
421
|
name: z.ZodString;
|
|
390
422
|
type: z.ZodString;
|
|
423
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
391
424
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
392
425
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
393
426
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -395,6 +428,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
395
428
|
propertyDescriptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
396
429
|
}, z.core.$strict>>>;
|
|
397
430
|
returnType: z.ZodOptional<z.ZodString>;
|
|
431
|
+
returnTypeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
398
432
|
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
399
433
|
name: z.ZodString;
|
|
400
434
|
constraint: z.ZodOptional<z.ZodString>;
|
|
@@ -403,6 +437,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
403
437
|
docComment: z.ZodOptional<z.ZodString>;
|
|
404
438
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
405
439
|
}, z.core.$strict>>>;
|
|
440
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
406
441
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
407
442
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
408
443
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -440,6 +475,8 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
440
475
|
"$derived.by": "$derived.by";
|
|
441
476
|
}>>;
|
|
442
477
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
478
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
479
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
443
480
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
444
481
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
445
482
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -474,6 +511,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
474
511
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
475
512
|
name: z.ZodString;
|
|
476
513
|
type: z.ZodString;
|
|
514
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
477
515
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
478
516
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
479
517
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -485,6 +523,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
485
523
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
486
524
|
name: z.ZodString;
|
|
487
525
|
type: z.ZodString;
|
|
526
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
488
527
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
489
528
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
490
529
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -492,6 +531,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
492
531
|
propertyDescriptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
493
532
|
}, z.core.$strict>>>;
|
|
494
533
|
returnType: z.ZodOptional<z.ZodString>;
|
|
534
|
+
returnTypeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
495
535
|
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
496
536
|
name: z.ZodString;
|
|
497
537
|
constraint: z.ZodOptional<z.ZodString>;
|
|
@@ -500,6 +540,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
500
540
|
docComment: z.ZodOptional<z.ZodString>;
|
|
501
541
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
502
542
|
}, z.core.$strict>>>;
|
|
543
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
503
544
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
504
545
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
505
546
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -528,11 +569,13 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
528
569
|
defaultType: z.ZodOptional<z.ZodString>;
|
|
529
570
|
}, z.core.$strict>>>;
|
|
530
571
|
}, z.core.$strict>], "kind">>>;
|
|
572
|
+
mergedValue: z.ZodDefault<z.ZodBoolean>;
|
|
531
573
|
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
532
574
|
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
533
575
|
module: z.ZodString;
|
|
534
576
|
name: z.ZodString;
|
|
535
577
|
}, z.core.$strict>>;
|
|
578
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
536
579
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
537
580
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
538
581
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -563,16 +606,20 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
563
606
|
}, z.core.$strict>>>;
|
|
564
607
|
}, z.core.$strict>, z.ZodObject<{
|
|
565
608
|
kind: z.ZodLiteral<"type">;
|
|
566
|
-
|
|
609
|
+
externalTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
610
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
567
611
|
members: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
568
612
|
kind: z.ZodLiteral<"function">;
|
|
569
613
|
name: z.ZodString;
|
|
570
614
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
615
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
571
616
|
returnType: z.ZodOptional<z.ZodString>;
|
|
617
|
+
returnTypeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
572
618
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
573
619
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
574
620
|
name: z.ZodString;
|
|
575
621
|
type: z.ZodString;
|
|
622
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
576
623
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
577
624
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
578
625
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -584,6 +631,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
584
631
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
585
632
|
name: z.ZodString;
|
|
586
633
|
type: z.ZodString;
|
|
634
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
587
635
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
588
636
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
589
637
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -591,6 +639,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
591
639
|
propertyDescriptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
592
640
|
}, z.core.$strict>>>;
|
|
593
641
|
returnType: z.ZodOptional<z.ZodString>;
|
|
642
|
+
returnTypeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
594
643
|
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
595
644
|
name: z.ZodString;
|
|
596
645
|
constraint: z.ZodOptional<z.ZodString>;
|
|
@@ -599,6 +648,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
599
648
|
docComment: z.ZodOptional<z.ZodString>;
|
|
600
649
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
601
650
|
}, z.core.$strict>>>;
|
|
651
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
602
652
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
603
653
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
604
654
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -636,6 +686,8 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
636
686
|
"$derived.by": "$derived.by";
|
|
637
687
|
}>>;
|
|
638
688
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
689
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
690
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
639
691
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
640
692
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
641
693
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -670,6 +722,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
670
722
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
671
723
|
name: z.ZodString;
|
|
672
724
|
type: z.ZodString;
|
|
725
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
673
726
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
674
727
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
675
728
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -681,6 +734,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
681
734
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
682
735
|
name: z.ZodString;
|
|
683
736
|
type: z.ZodString;
|
|
737
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
684
738
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
685
739
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
686
740
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -688,6 +742,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
688
742
|
propertyDescriptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
689
743
|
}, z.core.$strict>>>;
|
|
690
744
|
returnType: z.ZodOptional<z.ZodString>;
|
|
745
|
+
returnTypeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
691
746
|
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
692
747
|
name: z.ZodString;
|
|
693
748
|
constraint: z.ZodOptional<z.ZodString>;
|
|
@@ -696,6 +751,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
696
751
|
docComment: z.ZodOptional<z.ZodString>;
|
|
697
752
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
698
753
|
}, z.core.$strict>>>;
|
|
754
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
699
755
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
700
756
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
701
757
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -724,11 +780,13 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
724
780
|
defaultType: z.ZodOptional<z.ZodString>;
|
|
725
781
|
}, z.core.$strict>>>;
|
|
726
782
|
}, z.core.$strict>], "kind">>>;
|
|
783
|
+
mergedValue: z.ZodDefault<z.ZodBoolean>;
|
|
727
784
|
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
728
785
|
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
729
786
|
module: z.ZodString;
|
|
730
787
|
name: z.ZodString;
|
|
731
788
|
}, z.core.$strict>>;
|
|
789
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
732
790
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
733
791
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
734
792
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -766,11 +824,13 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
766
824
|
"$derived.by": "$derived.by";
|
|
767
825
|
}>>;
|
|
768
826
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
827
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
769
828
|
alsoExportedFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
770
829
|
aliasOf: z.ZodOptional<z.ZodObject<{
|
|
771
830
|
module: z.ZodString;
|
|
772
831
|
name: z.ZodString;
|
|
773
832
|
}, z.core.$strict>>;
|
|
833
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
774
834
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
775
835
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
776
836
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -805,11 +865,14 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
805
865
|
kind: z.ZodLiteral<"function">;
|
|
806
866
|
name: z.ZodString;
|
|
807
867
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
868
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
808
869
|
returnType: z.ZodOptional<z.ZodString>;
|
|
870
|
+
returnTypeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
809
871
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
810
872
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
811
873
|
name: z.ZodString;
|
|
812
874
|
type: z.ZodString;
|
|
875
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
813
876
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
814
877
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
815
878
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -821,6 +884,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
821
884
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
822
885
|
name: z.ZodString;
|
|
823
886
|
type: z.ZodString;
|
|
887
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
824
888
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
825
889
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
826
890
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -828,6 +892,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
828
892
|
propertyDescriptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
829
893
|
}, z.core.$strict>>>;
|
|
830
894
|
returnType: z.ZodOptional<z.ZodString>;
|
|
895
|
+
returnTypeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
831
896
|
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
832
897
|
name: z.ZodString;
|
|
833
898
|
constraint: z.ZodOptional<z.ZodString>;
|
|
@@ -836,6 +901,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
836
901
|
docComment: z.ZodOptional<z.ZodString>;
|
|
837
902
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
838
903
|
}, z.core.$strict>>>;
|
|
904
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
839
905
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
840
906
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
841
907
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -873,6 +939,8 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
873
939
|
"$derived.by": "$derived.by";
|
|
874
940
|
}>>;
|
|
875
941
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
942
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
943
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
876
944
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
877
945
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
878
946
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -907,6 +975,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
907
975
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
908
976
|
name: z.ZodString;
|
|
909
977
|
type: z.ZodString;
|
|
978
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
910
979
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
911
980
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
912
981
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -918,6 +987,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
918
987
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
919
988
|
name: z.ZodString;
|
|
920
989
|
type: z.ZodString;
|
|
990
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
921
991
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
922
992
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
923
993
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -925,6 +995,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
925
995
|
propertyDescriptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
926
996
|
}, z.core.$strict>>>;
|
|
927
997
|
returnType: z.ZodOptional<z.ZodString>;
|
|
998
|
+
returnTypeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
928
999
|
genericParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
929
1000
|
name: z.ZodString;
|
|
930
1001
|
constraint: z.ZodOptional<z.ZodString>;
|
|
@@ -933,6 +1004,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
933
1004
|
docComment: z.ZodOptional<z.ZodString>;
|
|
934
1005
|
returnDescription: z.ZodOptional<z.ZodString>;
|
|
935
1006
|
}, z.core.$strict>>>;
|
|
1007
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
936
1008
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
937
1009
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
938
1010
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -966,6 +1038,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
966
1038
|
module: z.ZodString;
|
|
967
1039
|
name: z.ZodString;
|
|
968
1040
|
}, z.core.$strict>>;
|
|
1041
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
969
1042
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
970
1043
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
971
1044
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -996,7 +1069,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
996
1069
|
}, z.core.$strict>>>;
|
|
997
1070
|
}, z.core.$strict>, z.ZodObject<{
|
|
998
1071
|
kind: z.ZodLiteral<"component">;
|
|
999
|
-
|
|
1072
|
+
externalTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1000
1073
|
props: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1001
1074
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1002
1075
|
deprecatedMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -1008,6 +1081,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
1008
1081
|
since: z.ZodOptional<z.ZodString>;
|
|
1009
1082
|
name: z.ZodString;
|
|
1010
1083
|
type: z.ZodString;
|
|
1084
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
1011
1085
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1012
1086
|
description: z.ZodOptional<z.ZodString>;
|
|
1013
1087
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
@@ -1015,6 +1089,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
1015
1089
|
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1016
1090
|
name: z.ZodString;
|
|
1017
1091
|
type: z.ZodString;
|
|
1092
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
1018
1093
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1019
1094
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1020
1095
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1031,6 +1106,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
1031
1106
|
module: z.ZodString;
|
|
1032
1107
|
name: z.ZodString;
|
|
1033
1108
|
}, z.core.$strict>>;
|
|
1109
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
1034
1110
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1035
1111
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1036
1112
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -1064,6 +1140,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
1064
1140
|
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1065
1141
|
name: z.ZodString;
|
|
1066
1142
|
type: z.ZodString;
|
|
1143
|
+
typeInfo: z.ZodOptional<z.ZodType<import("./types.js").TypeJson, import("./types.js").TypeJson, z.core.$ZodTypeInternals<import("./types.js").TypeJson, import("./types.js").TypeJson>>>;
|
|
1067
1144
|
optional: z.ZodDefault<z.ZodBoolean>;
|
|
1068
1145
|
rest: z.ZodDefault<z.ZodBoolean>;
|
|
1069
1146
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1075,6 +1152,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
1075
1152
|
module: z.ZodString;
|
|
1076
1153
|
name: z.ZodString;
|
|
1077
1154
|
}, z.core.$strict>>;
|
|
1155
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
1078
1156
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1079
1157
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1080
1158
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -1111,6 +1189,7 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
1111
1189
|
module: z.ZodString;
|
|
1112
1190
|
name: z.ZodString;
|
|
1113
1191
|
}, z.core.$strict>>;
|
|
1192
|
+
internalMessage: z.ZodOptional<z.ZodString>;
|
|
1114
1193
|
mutates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1115
1194
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
1116
1195
|
examples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -1206,6 +1285,18 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
1206
1285
|
warning: "warning";
|
|
1207
1286
|
}>;
|
|
1208
1287
|
kind: z.ZodLiteral<"svelte_prop_failed">;
|
|
1288
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1289
|
+
componentName: z.ZodString;
|
|
1290
|
+
propNames: z.ZodArray<z.ZodString>;
|
|
1291
|
+
file: z.ZodString;
|
|
1292
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
1293
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
1294
|
+
message: z.ZodString;
|
|
1295
|
+
severity: z.ZodEnum<{
|
|
1296
|
+
error: "error";
|
|
1297
|
+
warning: "warning";
|
|
1298
|
+
}>;
|
|
1299
|
+
kind: z.ZodLiteral<"legacy_props">;
|
|
1209
1300
|
}, z.core.$strict>, z.ZodObject<{
|
|
1210
1301
|
reason: z.ZodEnum<{
|
|
1211
1302
|
not_in_program: "not_in_program";
|
|
@@ -1258,11 +1349,12 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
1258
1349
|
}, z.core.$strict>, z.ZodObject<{
|
|
1259
1350
|
tagName: z.ZodEnum<{
|
|
1260
1351
|
default: "default";
|
|
1352
|
+
deprecated: "deprecated";
|
|
1261
1353
|
throws: "throws";
|
|
1262
1354
|
since: "since";
|
|
1263
1355
|
mutates: "mutates";
|
|
1264
|
-
deprecated: "deprecated";
|
|
1265
1356
|
example: "example";
|
|
1357
|
+
internal: "internal";
|
|
1266
1358
|
see: "see";
|
|
1267
1359
|
nodocs: "nodocs";
|
|
1268
1360
|
}>;
|
|
@@ -1331,6 +1423,17 @@ export declare const AnalyzeResultJson: z.ZodObject<{
|
|
|
1331
1423
|
warning: "warning";
|
|
1332
1424
|
}>;
|
|
1333
1425
|
kind: z.ZodLiteral<"resolver_failed">;
|
|
1426
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1427
|
+
aliasName: z.ZodString;
|
|
1428
|
+
file: z.ZodString;
|
|
1429
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
1430
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
1431
|
+
message: z.ZodString;
|
|
1432
|
+
severity: z.ZodEnum<{
|
|
1433
|
+
error: "error";
|
|
1434
|
+
warning: "warning";
|
|
1435
|
+
}>;
|
|
1436
|
+
kind: z.ZodLiteral<"alias_lost">;
|
|
1334
1437
|
}, z.core.$strict>], "kind">>>;
|
|
1335
1438
|
}, z.core.$strict>;
|
|
1336
1439
|
export type AnalyzeResultJson = z.infer<typeof AnalyzeResultJson>;
|
|
@@ -1380,10 +1483,14 @@ export interface AnalyzeResultJsonWire {
|
|
|
1380
1483
|
* `alsoExportedFrom` on returned declarations is always empty from this path —
|
|
1381
1484
|
* cross-module re-export resolution requires all modules (`mergeReExports`
|
|
1382
1485
|
* consumes the returned module's `reExports` in phase 2).
|
|
1486
|
+
*
|
|
1487
|
+
* `aliasRegistry` is optional at this boundary: direct callers assembling
|
|
1488
|
+
* modules themselves get written-name recovery only, while `analyzeCore`
|
|
1489
|
+
* passes the registry its pre-pass built (see `buildAliasRegistry`).
|
|
1383
1490
|
*/
|
|
1384
1491
|
export declare const analyzeModule: (sourceFile: SourceFileInfo & {
|
|
1385
1492
|
dependents?: ReadonlyArray<string>;
|
|
1386
|
-
}, program: ts.Program, options: ModuleSourceOptions, diagnostics: Array<Diagnostic>, log?: AnalysisLog) => ModuleJson | undefined;
|
|
1493
|
+
}, program: ts.Program, options: ModuleSourceOptions, diagnostics: Array<Diagnostic>, log?: AnalysisLog, aliasRegistry?: AliasRegistry) => ModuleJson | undefined;
|
|
1387
1494
|
/**
|
|
1388
1495
|
* Inputs to `analyzeCore`. The caller (one-shot wrapper or session.query)
|
|
1389
1496
|
* is responsible for normalizing `sourceOptions`, obtaining the program,
|
|
@@ -1403,40 +1510,88 @@ export interface AnalyzeCoreInputs {
|
|
|
1403
1510
|
svelteVirtualFiles: ReadonlyMap<string, SvelteVirtualFile>;
|
|
1404
1511
|
/** Svelte file IDs whose svelte2tsx transform failed at ingest. */
|
|
1405
1512
|
transformFailedIds?: ReadonlySet<string>;
|
|
1513
|
+
/**
|
|
1514
|
+
* Gated Svelte files (owned but failing `isSource` — the `internal/`
|
|
1515
|
+
* convention) whose virtuals are in `svelteVirtualFiles`. Analyzed only
|
|
1516
|
+
* when an emitted component alias references them, as canonical-fill
|
|
1517
|
+
* context for `resolveComponentAliases` — their modules never emit and
|
|
1518
|
+
* their analysis diagnostics are dropped (`partial` on the canonical
|
|
1519
|
+
* propagates to the filled alias instead).
|
|
1520
|
+
*/
|
|
1521
|
+
contextSvelteFiles?: ReadonlyArray<SourceFileInfo>;
|
|
1406
1522
|
onDuplicates?: OnDuplicates;
|
|
1407
1523
|
log?: AnalysisLog;
|
|
1408
1524
|
}
|
|
1525
|
+
export declare const analyzeCore: (inputs: AnalyzeCoreInputs) => AnalyzeResultJson;
|
|
1409
1526
|
/**
|
|
1410
|
-
* Run the
|
|
1411
|
-
*
|
|
1412
|
-
*
|
|
1413
|
-
*
|
|
1414
|
-
*
|
|
1415
|
-
*
|
|
1527
|
+
* Run the diagnostic boundary passes in their required order: virtual
|
|
1528
|
+
* position remap first (`remapVirtualDiagnosticPositions`), then path
|
|
1529
|
+
* normalization (`normalizeDiagnosticPaths` — it strips the virtual suffix
|
|
1530
|
+
* the remap matches `file` against, so the reverse order silently keeps
|
|
1531
|
+
* virtual positions). The one call for callers assembling modules themselves
|
|
1532
|
+
* through `analyzeModule` / `analyzeSvelteModule`; using it makes the
|
|
1533
|
+
* ordering unrepresentable instead of a contract to remember. Omit
|
|
1534
|
+
* `virtualFiles` when no Svelte virtuals are in play.
|
|
1416
1535
|
*
|
|
1417
|
-
*
|
|
1418
|
-
* transform-failed Svelte). Phase 2: re-export merge, component-alias fill,
|
|
1419
|
-
* sort, duplicate detection. Diagnostic paths are normalized to
|
|
1420
|
-
* project-root-relative form before return.
|
|
1421
|
-
*
|
|
1422
|
-
* Dependents are read from `sourceFile.dependents` (caller-supplied via
|
|
1423
|
-
* `extractDependencies`); `analyzeCore` does not compute them. `session.query`
|
|
1424
|
-
* runs `computeDependents` on the owned set before invoking this.
|
|
1536
|
+
* @mutates diagnostics — rewrites positions, `file`, and `message`
|
|
1425
1537
|
*/
|
|
1426
|
-
export declare const
|
|
1538
|
+
export declare const finalizeDiagnostics: (diagnostics: Array<Diagnostic>, options: {
|
|
1539
|
+
projectRoot: string;
|
|
1540
|
+
virtualFiles?: Iterable<SvelteVirtualFile>;
|
|
1541
|
+
}) => void;
|
|
1427
1542
|
/**
|
|
1428
|
-
* Normalize `Diagnostic
|
|
1543
|
+
* Normalize the paths a `Diagnostic` carries to project-root-relative form,
|
|
1544
|
+
* in place.
|
|
1429
1545
|
*
|
|
1430
1546
|
* Producers inside the analysis pipeline can write absolute paths or virtual
|
|
1431
1547
|
* paths (svelte2tsx output like `Foo.svelte.__svelte2tsx__.ts`). This pass
|
|
1432
1548
|
* collapses both to the public contract: a path relative to `projectRoot`
|
|
1433
|
-
* with no leading slash and no `./` prefix.
|
|
1549
|
+
* with no leading slash and no `./` prefix. A file outside the root gets the
|
|
1550
|
+
* `../` form, matching module paths in printed type text — and making the
|
|
1551
|
+
* documented "rejoin with `projectRoot` to get an absolute path" actually
|
|
1552
|
+
* hold for it, which dropping the leading slash did not.
|
|
1553
|
+
*
|
|
1554
|
+
* `message` gets the same treatment as `file`, by textual substitution. A
|
|
1555
|
+
* message is free-form, and not every path in one comes from a field this
|
|
1556
|
+
* pass can see — `import_parse_failed` wraps an es-module-lexer error that
|
|
1557
|
+
* embeds the file name itself. Scrubbing here means the contract holds for
|
|
1558
|
+
* the whole record rather than one field, so a producer can't reintroduce an
|
|
1559
|
+
* absolute path through prose.
|
|
1434
1560
|
*
|
|
1435
1561
|
* Exposed for build-tool integrations that bypass the session and collect
|
|
1436
1562
|
* their own discovery/dep diagnostics — they need the same normalization to
|
|
1437
|
-
* match the public contract.
|
|
1563
|
+
* match the public contract. **Hand it absolute paths.** An already-relative
|
|
1564
|
+
* `file` is left alone (relativizing it would resolve against `cwd`), so this
|
|
1565
|
+
* pass can only correct the absolute form — a relative path on a base other
|
|
1566
|
+
* than the project root passes through and ships as-is.
|
|
1438
1567
|
*
|
|
1439
|
-
* @mutates diagnostics — rewrites each diagnostic's `file`
|
|
1568
|
+
* @mutates diagnostics — rewrites each diagnostic's `file` and `message`
|
|
1569
|
+
* @see `finalizeDiagnostics` — when Svelte virtuals are in play, the position
|
|
1570
|
+
* remap must run before this pass (it strips the suffix the remap matches on)
|
|
1440
1571
|
*/
|
|
1441
1572
|
export declare const normalizeDiagnosticPaths: (diagnostics: Array<Diagnostic>, projectRoot: string) => void;
|
|
1573
|
+
/**
|
|
1574
|
+
* Normalize the absolute module paths TypeScript embeds in printed type text,
|
|
1575
|
+
* in place.
|
|
1576
|
+
*
|
|
1577
|
+
* The checker prints a module object as `typeof import("<absolute path>")`,
|
|
1578
|
+
* which reaches output through every checker-printed field — `typeSignature`
|
|
1579
|
+
* on declarations and members, `returnType`, and the `text`/`name` of a
|
|
1580
|
+
* `TypeJson` node. Left alone it makes output machine-dependent (two checkouts
|
|
1581
|
+
* of the same source produce different bytes), publishes local filesystem
|
|
1582
|
+
* paths on any site that renders `typeSignature`, and exposes the svelte2tsx
|
|
1583
|
+
* virtual suffix that `stripVirtualSuffix` exists to hide.
|
|
1584
|
+
*
|
|
1585
|
+
* A path that resolves to a module in this output is rewritten to that
|
|
1586
|
+
* module's `ModuleJson.path`, so the string doubles as a lookup key: a
|
|
1587
|
+
* consumer linkifies with `modules.find((m) => m.path === s)` and reads a miss
|
|
1588
|
+
* as "not a module here." See `createModulePathNormalizer` for the remaining
|
|
1589
|
+
* tiers.
|
|
1590
|
+
*
|
|
1591
|
+
* Runs as a whole-output pass rather than at the ~20 `typeToString` /
|
|
1592
|
+
* `signatureToString` call sites, so a new printing site can't miss it.
|
|
1593
|
+
*
|
|
1594
|
+
* @mutates modules — rewrites printed type text on declarations and members
|
|
1595
|
+
*/
|
|
1596
|
+
export declare const normalizeModulePathsInTypes: (modules: Array<ModuleJson>, options: ModuleSourceOptions, program: ts.Program) => void;
|
|
1442
1597
|
//# sourceMappingURL=analyze-core.d.ts.map
|