zod-openapi 2.18.0 → 2.19.0-beta.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/dist/extend.cjs +4 -0
- package/dist/extend.d.mts +1 -0
- package/dist/extend.d.ts +1 -0
- package/dist/extend.mjs +3 -0
- package/{lib-esm/extend.mjs → dist/extendZod.chunk.cjs} +2 -7
- package/{lib-commonjs/extend.js → dist/extendZod.chunk.mjs} +3 -24
- package/{lib-commonjs/index.js → dist/index.cjs} +247 -365
- package/dist/index.d.mts +1055 -0
- package/dist/index.d.ts +1055 -0
- package/{lib-esm → dist}/index.mjs +243 -336
- package/extend/index.d.ts +1 -0
- package/extend/package.json +5 -0
- package/package.json +30 -32
- package/lib-types/api.d.ts +0 -3
- package/lib-types/create/callbacks.d.ts +0 -5
- package/lib-types/create/components.d.ts +0 -125
- package/lib-types/create/content.d.ts +0 -6
- package/lib-types/create/document.d.ts +0 -73
- package/lib-types/create/parameters.d.ts +0 -10
- package/lib-types/create/paths.d.ts +0 -6
- package/lib-types/create/responses.d.ts +0 -10
- package/lib-types/create/schema/index.d.ts +0 -29
- package/lib-types/create/schema/metadata.d.ts +0 -3
- package/lib-types/create/schema/parsers/array.d.ts +0 -3
- package/lib-types/create/schema/parsers/boolean.d.ts +0 -3
- package/lib-types/create/schema/parsers/brand.d.ts +0 -3
- package/lib-types/create/schema/parsers/catch.d.ts +0 -3
- package/lib-types/create/schema/parsers/date.d.ts +0 -3
- package/lib-types/create/schema/parsers/default.d.ts +0 -3
- package/lib-types/create/schema/parsers/discriminatedUnion.d.ts +0 -5
- package/lib-types/create/schema/parsers/enum.d.ts +0 -3
- package/lib-types/create/schema/parsers/index.d.ts +0 -3
- package/lib-types/create/schema/parsers/intersection.d.ts +0 -3
- package/lib-types/create/schema/parsers/lazy.d.ts +0 -3
- package/lib-types/create/schema/parsers/literal.d.ts +0 -3
- package/lib-types/create/schema/parsers/manual.d.ts +0 -3
- package/lib-types/create/schema/parsers/nativeEnum.d.ts +0 -10
- package/lib-types/create/schema/parsers/null.d.ts +0 -2
- package/lib-types/create/schema/parsers/nullable.d.ts +0 -3
- package/lib-types/create/schema/parsers/number.d.ts +0 -13
- package/lib-types/create/schema/parsers/object.d.ts +0 -21
- package/lib-types/create/schema/parsers/optional.d.ts +0 -10
- package/lib-types/create/schema/parsers/pipeline.d.ts +0 -3
- package/lib-types/create/schema/parsers/preprocess.d.ts +0 -3
- package/lib-types/create/schema/parsers/readonly.d.ts +0 -3
- package/lib-types/create/schema/parsers/record.d.ts +0 -3
- package/lib-types/create/schema/parsers/refine.d.ts +0 -3
- package/lib-types/create/schema/parsers/set.d.ts +0 -3
- package/lib-types/create/schema/parsers/string.d.ts +0 -3
- package/lib-types/create/schema/parsers/transform.d.ts +0 -10
- package/lib-types/create/schema/parsers/tuple.d.ts +0 -3
- package/lib-types/create/schema/parsers/union.d.ts +0 -3
- package/lib-types/create/schema/parsers/unknown.d.ts +0 -3
- package/lib-types/create/specificationExtension.d.ts +0 -1
- package/lib-types/extend.d.ts +0 -1
- package/lib-types/extendZod.d.ts +0 -3
- package/lib-types/extendZodTypes.d.ts +0 -75
- package/lib-types/index.d.ts +0 -4
- package/lib-types/openapi.d.ts +0 -5
- package/lib-types/openapi3-ts/dist/dsl/openapi-builder30.d.ts +0 -31
- package/lib-types/openapi3-ts/dist/dsl/openapi-builder31.d.ts +0 -32
- package/lib-types/openapi3-ts/dist/index.d.ts +0 -3
- package/lib-types/openapi3-ts/dist/model/oas-common.d.ts +0 -15
- package/lib-types/openapi3-ts/dist/model/openapi30.d.ts +0 -291
- package/lib-types/openapi3-ts/dist/model/openapi31.d.ts +0 -298
- package/lib-types/openapi3-ts/dist/model/server.d.ts +0 -19
- package/lib-types/openapi3-ts/dist/model/specification-extension.d.ts +0 -12
- package/lib-types/openapi3-ts/dist/oas30.d.ts +0 -4
- package/lib-types/openapi3-ts/dist/oas31.d.ts +0 -4
- package/lib-types/zodType.d.ts +0 -42
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
import { ServerObject } from './oas-common';
|
|
2
|
-
import { ISpecificationExtension } from './specification-extension';
|
|
3
|
-
export * from './oas-common';
|
|
4
|
-
export type { ISpecificationExtension, SpecificationExtension } from './specification-extension';
|
|
5
|
-
export interface OpenAPIObject extends ISpecificationExtension {
|
|
6
|
-
openapi: string;
|
|
7
|
-
info: InfoObject;
|
|
8
|
-
servers?: ServerObject[];
|
|
9
|
-
paths?: PathsObject;
|
|
10
|
-
components?: ComponentsObject;
|
|
11
|
-
security?: SecurityRequirementObject[];
|
|
12
|
-
tags?: TagObject[];
|
|
13
|
-
externalDocs?: ExternalDocumentationObject;
|
|
14
|
-
webhooks?: PathsObject;
|
|
15
|
-
}
|
|
16
|
-
export interface InfoObject extends ISpecificationExtension {
|
|
17
|
-
title: string;
|
|
18
|
-
description?: string;
|
|
19
|
-
termsOfService?: string;
|
|
20
|
-
contact?: ContactObject;
|
|
21
|
-
license?: LicenseObject;
|
|
22
|
-
version: string;
|
|
23
|
-
}
|
|
24
|
-
export interface ContactObject extends ISpecificationExtension {
|
|
25
|
-
name?: string;
|
|
26
|
-
url?: string;
|
|
27
|
-
email?: string;
|
|
28
|
-
}
|
|
29
|
-
export interface LicenseObject extends ISpecificationExtension {
|
|
30
|
-
name: string;
|
|
31
|
-
identifier?: string;
|
|
32
|
-
url?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface ComponentsObject extends ISpecificationExtension {
|
|
35
|
-
schemas?: {
|
|
36
|
-
[schema: string]: SchemaObject | ReferenceObject;
|
|
37
|
-
};
|
|
38
|
-
responses?: {
|
|
39
|
-
[response: string]: ResponseObject | ReferenceObject;
|
|
40
|
-
};
|
|
41
|
-
parameters?: {
|
|
42
|
-
[parameter: string]: ParameterObject | ReferenceObject;
|
|
43
|
-
};
|
|
44
|
-
examples?: {
|
|
45
|
-
[example: string]: ExampleObject | ReferenceObject;
|
|
46
|
-
};
|
|
47
|
-
requestBodies?: {
|
|
48
|
-
[request: string]: RequestBodyObject | ReferenceObject;
|
|
49
|
-
};
|
|
50
|
-
headers?: {
|
|
51
|
-
[header: string]: HeaderObject | ReferenceObject;
|
|
52
|
-
};
|
|
53
|
-
securitySchemes?: {
|
|
54
|
-
[securityScheme: string]: SecuritySchemeObject | ReferenceObject;
|
|
55
|
-
};
|
|
56
|
-
links?: {
|
|
57
|
-
[link: string]: LinkObject | ReferenceObject;
|
|
58
|
-
};
|
|
59
|
-
callbacks?: {
|
|
60
|
-
[callback: string]: CallbackObject | ReferenceObject;
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
export interface PathsObject extends ISpecificationExtension {
|
|
64
|
-
[path: string]: PathItemObject;
|
|
65
|
-
}
|
|
66
|
-
export type PathObject = PathsObject;
|
|
67
|
-
export declare function getPath(pathsObject: PathsObject | undefined, path: string): PathItemObject | undefined;
|
|
68
|
-
export interface PathItemObject extends ISpecificationExtension {
|
|
69
|
-
$ref?: string;
|
|
70
|
-
summary?: string;
|
|
71
|
-
description?: string;
|
|
72
|
-
get?: OperationObject;
|
|
73
|
-
put?: OperationObject;
|
|
74
|
-
post?: OperationObject;
|
|
75
|
-
delete?: OperationObject;
|
|
76
|
-
options?: OperationObject;
|
|
77
|
-
head?: OperationObject;
|
|
78
|
-
patch?: OperationObject;
|
|
79
|
-
trace?: OperationObject;
|
|
80
|
-
servers?: ServerObject[];
|
|
81
|
-
parameters?: (ParameterObject | ReferenceObject)[];
|
|
82
|
-
}
|
|
83
|
-
export interface OperationObject extends ISpecificationExtension {
|
|
84
|
-
tags?: string[];
|
|
85
|
-
summary?: string;
|
|
86
|
-
description?: string;
|
|
87
|
-
externalDocs?: ExternalDocumentationObject;
|
|
88
|
-
operationId?: string;
|
|
89
|
-
parameters?: (ParameterObject | ReferenceObject)[];
|
|
90
|
-
requestBody?: RequestBodyObject | ReferenceObject;
|
|
91
|
-
responses?: ResponsesObject;
|
|
92
|
-
callbacks?: CallbacksObject;
|
|
93
|
-
deprecated?: boolean;
|
|
94
|
-
security?: SecurityRequirementObject[];
|
|
95
|
-
servers?: ServerObject[];
|
|
96
|
-
}
|
|
97
|
-
export interface ExternalDocumentationObject extends ISpecificationExtension {
|
|
98
|
-
description?: string;
|
|
99
|
-
url: string;
|
|
100
|
-
}
|
|
101
|
-
export type ParameterLocation = 'query' | 'header' | 'path' | 'cookie';
|
|
102
|
-
export type ParameterStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';
|
|
103
|
-
export interface BaseParameterObject extends ISpecificationExtension {
|
|
104
|
-
description?: string;
|
|
105
|
-
required?: boolean;
|
|
106
|
-
deprecated?: boolean;
|
|
107
|
-
allowEmptyValue?: boolean;
|
|
108
|
-
style?: ParameterStyle;
|
|
109
|
-
explode?: boolean;
|
|
110
|
-
allowReserved?: boolean;
|
|
111
|
-
schema?: SchemaObject | ReferenceObject;
|
|
112
|
-
examples?: {
|
|
113
|
-
[param: string]: ExampleObject | ReferenceObject;
|
|
114
|
-
};
|
|
115
|
-
example?: any;
|
|
116
|
-
content?: ContentObject;
|
|
117
|
-
}
|
|
118
|
-
export interface ParameterObject extends BaseParameterObject {
|
|
119
|
-
name: string;
|
|
120
|
-
in: ParameterLocation;
|
|
121
|
-
}
|
|
122
|
-
export interface RequestBodyObject extends ISpecificationExtension {
|
|
123
|
-
description?: string;
|
|
124
|
-
content: ContentObject;
|
|
125
|
-
required?: boolean;
|
|
126
|
-
}
|
|
127
|
-
export interface ContentObject {
|
|
128
|
-
[mediatype: string]: MediaTypeObject;
|
|
129
|
-
}
|
|
130
|
-
export interface MediaTypeObject extends ISpecificationExtension {
|
|
131
|
-
schema?: SchemaObject | ReferenceObject;
|
|
132
|
-
examples?: ExamplesObject;
|
|
133
|
-
example?: any;
|
|
134
|
-
encoding?: EncodingObject;
|
|
135
|
-
}
|
|
136
|
-
export interface EncodingObject extends ISpecificationExtension {
|
|
137
|
-
[property: string]: EncodingPropertyObject | any;
|
|
138
|
-
}
|
|
139
|
-
export interface EncodingPropertyObject {
|
|
140
|
-
contentType?: string;
|
|
141
|
-
headers?: {
|
|
142
|
-
[key: string]: HeaderObject | ReferenceObject;
|
|
143
|
-
};
|
|
144
|
-
style?: string;
|
|
145
|
-
explode?: boolean;
|
|
146
|
-
allowReserved?: boolean;
|
|
147
|
-
[key: string]: any;
|
|
148
|
-
}
|
|
149
|
-
export interface ResponsesObject extends ISpecificationExtension {
|
|
150
|
-
default?: ResponseObject | ReferenceObject;
|
|
151
|
-
[statuscode: string]: ResponseObject | ReferenceObject | any;
|
|
152
|
-
}
|
|
153
|
-
export interface ResponseObject extends ISpecificationExtension {
|
|
154
|
-
description: string;
|
|
155
|
-
headers?: HeadersObject;
|
|
156
|
-
content?: ContentObject;
|
|
157
|
-
links?: LinksObject;
|
|
158
|
-
}
|
|
159
|
-
export interface CallbacksObject extends ISpecificationExtension {
|
|
160
|
-
[name: string]: CallbackObject | ReferenceObject | any;
|
|
161
|
-
}
|
|
162
|
-
export interface CallbackObject extends ISpecificationExtension {
|
|
163
|
-
[name: string]: PathItemObject | any;
|
|
164
|
-
}
|
|
165
|
-
export interface HeadersObject {
|
|
166
|
-
[name: string]: HeaderObject | ReferenceObject;
|
|
167
|
-
}
|
|
168
|
-
export interface ExampleObject {
|
|
169
|
-
summary?: string;
|
|
170
|
-
description?: string;
|
|
171
|
-
value?: any;
|
|
172
|
-
externalValue?: string;
|
|
173
|
-
[property: string]: any;
|
|
174
|
-
}
|
|
175
|
-
export interface LinksObject {
|
|
176
|
-
[name: string]: LinkObject | ReferenceObject;
|
|
177
|
-
}
|
|
178
|
-
export interface LinkObject extends ISpecificationExtension {
|
|
179
|
-
operationRef?: string;
|
|
180
|
-
operationId?: string;
|
|
181
|
-
parameters?: LinkParametersObject;
|
|
182
|
-
requestBody?: any | string;
|
|
183
|
-
description?: string;
|
|
184
|
-
server?: ServerObject;
|
|
185
|
-
[property: string]: any;
|
|
186
|
-
}
|
|
187
|
-
export interface LinkParametersObject {
|
|
188
|
-
[name: string]: any | string;
|
|
189
|
-
}
|
|
190
|
-
export interface HeaderObject extends BaseParameterObject {
|
|
191
|
-
$ref?: string;
|
|
192
|
-
}
|
|
193
|
-
export interface TagObject extends ISpecificationExtension {
|
|
194
|
-
name: string;
|
|
195
|
-
description?: string;
|
|
196
|
-
externalDocs?: ExternalDocumentationObject;
|
|
197
|
-
[extension: string]: any;
|
|
198
|
-
}
|
|
199
|
-
export interface ExamplesObject {
|
|
200
|
-
[name: string]: ExampleObject | ReferenceObject;
|
|
201
|
-
}
|
|
202
|
-
export interface ReferenceObject {
|
|
203
|
-
$ref: string;
|
|
204
|
-
summary?: string;
|
|
205
|
-
description?: string;
|
|
206
|
-
}
|
|
207
|
-
export declare function isReferenceObject(obj: any): obj is ReferenceObject;
|
|
208
|
-
export type SchemaObjectType = 'integer' | 'number' | 'string' | 'boolean' | 'object' | 'null' | 'array';
|
|
209
|
-
export interface SchemaObject extends ISpecificationExtension {
|
|
210
|
-
discriminator?: DiscriminatorObject;
|
|
211
|
-
readOnly?: boolean;
|
|
212
|
-
writeOnly?: boolean;
|
|
213
|
-
xml?: XmlObject;
|
|
214
|
-
externalDocs?: ExternalDocumentationObject;
|
|
215
|
-
example?: any;
|
|
216
|
-
examples?: any[];
|
|
217
|
-
deprecated?: boolean;
|
|
218
|
-
type?: SchemaObjectType | SchemaObjectType[];
|
|
219
|
-
format?: 'int32' | 'int64' | 'float' | 'double' | 'byte' | 'binary' | 'date' | 'date-time' | 'password' | string;
|
|
220
|
-
allOf?: (SchemaObject | ReferenceObject)[];
|
|
221
|
-
oneOf?: (SchemaObject | ReferenceObject)[];
|
|
222
|
-
anyOf?: (SchemaObject | ReferenceObject)[];
|
|
223
|
-
not?: SchemaObject | ReferenceObject;
|
|
224
|
-
items?: SchemaObject | ReferenceObject;
|
|
225
|
-
properties?: {
|
|
226
|
-
[propertyName: string]: SchemaObject | ReferenceObject;
|
|
227
|
-
};
|
|
228
|
-
additionalProperties?: SchemaObject | ReferenceObject | boolean;
|
|
229
|
-
propertyNames?: SchemaObject | ReferenceObject;
|
|
230
|
-
description?: string;
|
|
231
|
-
default?: any;
|
|
232
|
-
title?: string;
|
|
233
|
-
multipleOf?: number;
|
|
234
|
-
maximum?: number;
|
|
235
|
-
const?: any;
|
|
236
|
-
exclusiveMaximum?: number;
|
|
237
|
-
minimum?: number;
|
|
238
|
-
exclusiveMinimum?: number;
|
|
239
|
-
maxLength?: number;
|
|
240
|
-
minLength?: number;
|
|
241
|
-
pattern?: string;
|
|
242
|
-
maxItems?: number;
|
|
243
|
-
minItems?: number;
|
|
244
|
-
uniqueItems?: boolean;
|
|
245
|
-
maxProperties?: number;
|
|
246
|
-
minProperties?: number;
|
|
247
|
-
required?: string[];
|
|
248
|
-
enum?: any[];
|
|
249
|
-
prefixItems?: (SchemaObject | ReferenceObject)[];
|
|
250
|
-
contentMediaType?: string;
|
|
251
|
-
contentEncoding?: string;
|
|
252
|
-
}
|
|
253
|
-
export declare function isSchemaObject(schema: SchemaObject | ReferenceObject): schema is SchemaObject;
|
|
254
|
-
export interface SchemasObject {
|
|
255
|
-
[schema: string]: SchemaObject;
|
|
256
|
-
}
|
|
257
|
-
export interface DiscriminatorObject {
|
|
258
|
-
propertyName: string;
|
|
259
|
-
mapping?: {
|
|
260
|
-
[key: string]: string;
|
|
261
|
-
};
|
|
262
|
-
}
|
|
263
|
-
export interface XmlObject extends ISpecificationExtension {
|
|
264
|
-
name?: string;
|
|
265
|
-
namespace?: string;
|
|
266
|
-
prefix?: string;
|
|
267
|
-
attribute?: boolean;
|
|
268
|
-
wrapped?: boolean;
|
|
269
|
-
}
|
|
270
|
-
export type SecuritySchemeType = 'apiKey' | 'http' | 'oauth2' | 'openIdConnect';
|
|
271
|
-
export interface SecuritySchemeObject extends ISpecificationExtension {
|
|
272
|
-
type: SecuritySchemeType;
|
|
273
|
-
description?: string;
|
|
274
|
-
name?: string;
|
|
275
|
-
in?: string;
|
|
276
|
-
scheme?: string;
|
|
277
|
-
bearerFormat?: string;
|
|
278
|
-
flows?: OAuthFlowsObject;
|
|
279
|
-
openIdConnectUrl?: string;
|
|
280
|
-
}
|
|
281
|
-
export interface OAuthFlowsObject extends ISpecificationExtension {
|
|
282
|
-
implicit?: OAuthFlowObject;
|
|
283
|
-
password?: OAuthFlowObject;
|
|
284
|
-
clientCredentials?: OAuthFlowObject;
|
|
285
|
-
authorizationCode?: OAuthFlowObject;
|
|
286
|
-
}
|
|
287
|
-
export interface OAuthFlowObject extends ISpecificationExtension {
|
|
288
|
-
authorizationUrl?: string;
|
|
289
|
-
tokenUrl?: string;
|
|
290
|
-
refreshUrl?: string;
|
|
291
|
-
scopes: ScopesObject;
|
|
292
|
-
}
|
|
293
|
-
export interface ScopesObject extends ISpecificationExtension {
|
|
294
|
-
[scope: string]: any;
|
|
295
|
-
}
|
|
296
|
-
export interface SecurityRequirementObject {
|
|
297
|
-
[name: string]: string[];
|
|
298
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ServerObject, ServerVariableObject } from './oas-common';
|
|
2
|
-
import { IExtensionName, IExtensionType } from './specification-extension';
|
|
3
|
-
export declare class Server implements ServerObject {
|
|
4
|
-
url: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
variables: {
|
|
7
|
-
[v: string]: ServerVariable;
|
|
8
|
-
};
|
|
9
|
-
[k: IExtensionName]: IExtensionType;
|
|
10
|
-
constructor(url: string, desc?: string);
|
|
11
|
-
addVariable(name: string, variable: ServerVariable): void;
|
|
12
|
-
}
|
|
13
|
-
export declare class ServerVariable implements ServerVariableObject {
|
|
14
|
-
enum?: string[] | boolean[] | number[];
|
|
15
|
-
default: string | boolean | number;
|
|
16
|
-
description?: string;
|
|
17
|
-
[k: IExtensionName]: IExtensionType;
|
|
18
|
-
constructor(defaultValue: string | boolean | number, enums?: string[] | boolean[] | number[], description?: string);
|
|
19
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type IExtensionName = `x-${string}`;
|
|
2
|
-
export type IExtensionType = any;
|
|
3
|
-
export type ISpecificationExtension = {
|
|
4
|
-
[extensionName: IExtensionName]: IExtensionType;
|
|
5
|
-
};
|
|
6
|
-
export declare class SpecificationExtension implements ISpecificationExtension {
|
|
7
|
-
[extensionName: IExtensionName]: any;
|
|
8
|
-
static isValidExtension(extensionName: string): boolean;
|
|
9
|
-
getExtension(extensionName: string): any;
|
|
10
|
-
addExtension(extensionName: string, payload: any): void;
|
|
11
|
-
listExtensions(): string[];
|
|
12
|
-
}
|
package/lib-types/zodType.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { EnumLike, UnknownKeysParam, ZodAny, ZodArray, ZodBigInt, ZodBoolean, ZodBranded, ZodCatch, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodEffects, ZodEnum, ZodFunction, ZodIntersection, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNativeEnum, ZodNever, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodPipeline, ZodPromise, ZodRawShape, ZodReadonly, ZodRecord, ZodSet, ZodString, ZodSymbol, ZodTuple, ZodType, ZodTypeAny, ZodTypeDef, ZodUndefined, ZodUnion, ZodUnionOptions, ZodUnknown, ZodVoid } from 'zod';
|
|
2
|
-
type ZodTypeMap = {
|
|
3
|
-
ZodAny: ZodAny;
|
|
4
|
-
ZodArray: ZodArray<ZodTypeAny>;
|
|
5
|
-
ZodBigInt: ZodBigInt;
|
|
6
|
-
ZodBoolean: ZodBoolean;
|
|
7
|
-
ZodBranded: ZodBranded<ZodTypeAny, string | number | symbol>;
|
|
8
|
-
ZodCatch: ZodCatch<ZodTypeAny>;
|
|
9
|
-
ZodDate: ZodDate;
|
|
10
|
-
ZodDefault: ZodDefault<ZodTypeAny>;
|
|
11
|
-
ZodDiscriminatedUnion: ZodDiscriminatedUnion<string, any>;
|
|
12
|
-
ZodEffects: ZodEffects<ZodTypeAny>;
|
|
13
|
-
ZodEnum: ZodEnum<[string, ...string[]]>;
|
|
14
|
-
ZodFunction: ZodFunction<ZodTuple<any, any>, ZodTypeAny>;
|
|
15
|
-
ZodIntersection: ZodIntersection<ZodTypeAny, ZodTypeAny>;
|
|
16
|
-
ZodLazy: ZodLazy<ZodTypeAny>;
|
|
17
|
-
ZodLiteral: ZodLiteral<ZodTypeAny>;
|
|
18
|
-
ZodMap: ZodMap;
|
|
19
|
-
ZodNaN: ZodNaN;
|
|
20
|
-
ZodNativeEnum: ZodNativeEnum<EnumLike>;
|
|
21
|
-
ZodNever: ZodNever;
|
|
22
|
-
ZodNull: ZodNull;
|
|
23
|
-
ZodNullable: ZodNullable<ZodTypeAny>;
|
|
24
|
-
ZodNumber: ZodNumber;
|
|
25
|
-
ZodObject: ZodObject<ZodRawShape, UnknownKeysParam, ZodTypeAny>;
|
|
26
|
-
ZodOptional: ZodOptional<ZodTypeAny>;
|
|
27
|
-
ZodPipeline: ZodPipeline<ZodTypeAny, ZodTypeAny>;
|
|
28
|
-
ZodPromise: ZodPromise<ZodTypeAny>;
|
|
29
|
-
ZodReadonly: ZodReadonly<ZodTypeAny>;
|
|
30
|
-
ZodRecord: ZodRecord;
|
|
31
|
-
ZodSet: ZodSet;
|
|
32
|
-
ZodString: ZodString;
|
|
33
|
-
ZodSymbol: ZodSymbol;
|
|
34
|
-
ZodTuple: ZodTuple;
|
|
35
|
-
ZodUndefined: ZodUndefined;
|
|
36
|
-
ZodUnion: ZodUnion<ZodUnionOptions>;
|
|
37
|
-
ZodUnknown: ZodUnknown;
|
|
38
|
-
ZodVoid: ZodVoid;
|
|
39
|
-
};
|
|
40
|
-
export declare const isZodType: <K extends keyof ZodTypeMap>(zodType: unknown, typeName: K) => zodType is ZodTypeMap[K];
|
|
41
|
-
export declare const isAnyZodType: (zodType: unknown) => zodType is ZodType<any, ZodTypeDef, any>;
|
|
42
|
-
export {};
|