quicktype-core 23.0.173 → 23.0.175

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.
@@ -4,7 +4,7 @@ import { type RenderContext } from "../../Renderer";
4
4
  import { type OptionValues } from "../../RendererOptions";
5
5
  import { type Sourcelike } from "../../Source";
6
6
  import { type TargetLanguage } from "../../TargetLanguage";
7
- import { ClassType, type Type } from "../../Type";
7
+ import { ClassType, EnumType, type Type, UnionType } from "../../Type";
8
8
  import { type elixirOptions } from "./language";
9
9
  export declare class ElixirRenderer extends ConvenienceRenderer {
10
10
  private readonly _options;
@@ -24,15 +24,15 @@ export declare class ElixirRenderer extends ConvenienceRenderer {
24
24
  private patternMatchClauseDecode;
25
25
  private patternMatchClauseEncode;
26
26
  private sortAndFilterPatternMatchTypes;
27
- private emitPatternMatches;
27
+ protected emitPatternMatches(types: Type[], name: Sourcelike, parentName: Sourcelike, suffix?: string, optional?: boolean): void;
28
28
  private nameOfTransformFunction;
29
29
  private fromDynamic;
30
30
  private toDynamic;
31
- private emitBlock;
31
+ protected emitBlock(source: Sourcelike, emit: () => void): void;
32
32
  protected emitDescriptionBlock(lines: Sourcelike[]): void;
33
- private emitModule;
33
+ protected emitModule(c: ClassType, moduleName: Name): void;
34
34
  private isValidAtom;
35
- private emitEnum;
36
- private emitUnion;
35
+ protected emitEnum(e: EnumType, enumName: Name): void;
36
+ protected emitUnion(_u: UnionType, _unionName: Name): void;
37
37
  protected emitSourceStructure(): void;
38
38
  }
@@ -112,7 +112,7 @@ class GoRenderer extends ConvenienceRenderer_1.ConvenienceRenderer {
112
112
  this._options.justTypes === false &&
113
113
  this._options.justTypesAndPackage === false &&
114
114
  this.leadingComments === undefined) {
115
- this.emitLineOnce("// This file was generated from JSON Schema using quicktype, do not modify it directly.");
115
+ this.emitLineOnce("// Code generated from JSON Schema using quicktype. DO NOT EDIT.");
116
116
  this.emitLineOnce("// To parse and unparse this JSON data, add this code to your project and do:");
117
117
  this.emitLineOnce("//");
118
118
  const ref = (0, Source_1.modifySource)(Strings_1.camelCase, name);
@@ -255,7 +255,7 @@ class GoRenderer extends ConvenienceRenderer_1.ConvenienceRenderer {
255
255
  this.endFile();
256
256
  }
257
257
  emitSingleFileHeaderComments() {
258
- this.emitLineOnce("// This file was generated from JSON Schema using quicktype, do not modify it directly.");
258
+ this.emitLineOnce("// Code generated from JSON Schema using quicktype. DO NOT EDIT.");
259
259
  this.emitLineOnce("// To parse and unparse this JSON data, add this code to your project and do:");
260
260
  this.forEachTopLevel("none", (_, name) => {
261
261
  this.emitLine("//");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quicktype-core",
3
- "version": "23.0.173",
3
+ "version": "23.0.175",
4
4
  "description": "The quicktype engine as a library",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",