quicktype-core 23.0.84 → 23.0.86
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { StringTypeMapping } from "TypeBuilder";
|
|
2
2
|
import { ConvenienceRenderer } from "../ConvenienceRenderer";
|
|
3
|
-
import { Namer } from "../Naming";
|
|
3
|
+
import { Name, Namer } from "../Naming";
|
|
4
4
|
import { RenderContext } from "../Renderer";
|
|
5
5
|
import { BooleanOption, Option, OptionValues } from "../RendererOptions";
|
|
6
6
|
import { Sourcelike } from "../Source";
|
|
7
7
|
import { TargetLanguage } from "../TargetLanguage";
|
|
8
|
-
import { ClassProperty, Type } from "../Type";
|
|
8
|
+
import { ClassProperty, EnumType, ObjectType, Type } from "../Type";
|
|
9
9
|
export declare const typeScriptZodOptions: {
|
|
10
10
|
justSchema: BooleanOption;
|
|
11
11
|
};
|
|
@@ -18,7 +18,7 @@ export declare class TypeScriptZodTargetLanguage extends TargetLanguage {
|
|
|
18
18
|
}): TypeScriptZodRenderer;
|
|
19
19
|
}
|
|
20
20
|
export declare class TypeScriptZodRenderer extends ConvenienceRenderer {
|
|
21
|
-
|
|
21
|
+
protected readonly _options: OptionValues<typeof typeScriptZodOptions>;
|
|
22
22
|
constructor(targetLanguage: TargetLanguage, renderContext: RenderContext, _options: OptionValues<typeof typeScriptZodOptions>);
|
|
23
23
|
protected forbiddenNamesForGlobalNamespace(): string[];
|
|
24
24
|
protected nameStyle(original: string, upper: boolean): string;
|
|
@@ -26,12 +26,12 @@ export declare class TypeScriptZodRenderer extends ConvenienceRenderer {
|
|
|
26
26
|
protected makeUnionMemberNamer(): Namer;
|
|
27
27
|
protected namerForObjectProperty(): Namer;
|
|
28
28
|
protected makeEnumCaseNamer(): Namer;
|
|
29
|
-
|
|
29
|
+
protected importStatement(lhs: Sourcelike, moduleName: Sourcelike): Sourcelike;
|
|
30
30
|
protected emitImports(): void;
|
|
31
|
-
typeMapTypeForProperty(p: ClassProperty): Sourcelike;
|
|
32
|
-
typeMapTypeFor(t: Type, required?: boolean): Sourcelike;
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
protected typeMapTypeForProperty(p: ClassProperty): Sourcelike;
|
|
32
|
+
protected typeMapTypeFor(t: Type, required?: boolean): Sourcelike;
|
|
33
|
+
protected emitObject(name: Name, t: ObjectType): void;
|
|
34
|
+
protected emitEnum(e: EnumType, enumName: Name): void;
|
|
35
35
|
protected emitSchemas(): void;
|
|
36
36
|
protected emitSourceStructure(): void;
|
|
37
37
|
}
|