svelte-reflector 1.0.22 → 1.0.23

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.
@@ -25,4 +25,5 @@ export declare class ObjectProp {
25
25
  constructorBuild(): string;
26
26
  classBuild(): string;
27
27
  interfaceBuild(): string;
28
+ bundleBuild(): string;
28
29
  }
package/dist/property.js CHANGED
@@ -172,4 +172,7 @@ export class ObjectProp {
172
172
  const req = this.required ? "" : "?";
173
173
  return `${this.name}${req}: ${this.type}Interface`;
174
174
  }
175
+ bundleBuild() {
176
+ return `${this.name}: this.${this.name}.bundle()`;
177
+ }
175
178
  }
package/dist/schema.js CHANGED
@@ -64,7 +64,7 @@ export class Schema {
64
64
  this.objectProps.forEach((prop) => {
65
65
  constructorThis.push(prop.constructorBuild());
66
66
  keys.push(prop.classBuild());
67
- // bundleParams.push(prop.bundleBuild());
67
+ bundleParams.push(prop.bundleBuild());
68
68
  });
69
69
  this.schema = `
70
70
  export class ${this.name} {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-reflector",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Reflects zod types from openAPI schemas",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",