@compassdigital/sdk.typescript 3.12.1 → 3.12.2

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/bin/gen.js CHANGED
@@ -180,8 +180,7 @@ var CodeGenerator = /** @class */ (function () {
180
180
  }
181
181
  // utility types
182
182
  if (ambient) {
183
- var utils = fs_1["default"].readFileSync("./interface/util.ts");
184
- print.raw(utils.toString());
183
+ print.raw("export type RequestQuery<T extends object> = { [K in keyof T]: T[K] extends number|undefined ? string : T[K]; }");
185
184
  }
186
185
  else {
187
186
  print["import"]("./util", ["RequestQuery"]);
package/gen.ts CHANGED
@@ -138,8 +138,7 @@ export class CodeGenerator {
138
138
  }
139
139
  // utility types
140
140
  if (ambient) {
141
- const utils = fs.readFileSync("./interface/util.ts");
142
- print.raw(utils.toString());
141
+ print.raw("export type RequestQuery<T extends object> = { [K in keyof T]: T[K] extends number|undefined ? string : T[K]; }");
143
142
  } else {
144
143
  print.import("./util", ["RequestQuery"]);
145
144
  }
@@ -2,6 +2,6 @@
2
2
  * Convert number query parameters to string.
3
3
  */
4
4
  export declare type RequestQuery<T extends object> = {
5
- [K in keyof T]: T[K] extends number ? string : T[K];
5
+ [K in keyof T]: T[K] extends number | undefined ? string : T[K];
6
6
  };
7
7
  //# sourceMappingURL=util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/interface/util.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,YAAY,CAAC,CAAC,SAAS,MAAM,IAAI;KAC3C,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;CACnD,CAAA"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/interface/util.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,YAAY,CAAC,CAAC,SAAS,MAAM,IAAI;KAC3C,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAC,SAAS,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;CAC7D,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "3.12.1",
3
+ "version": "3.12.2",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "bin": "./bin/index.js",
@@ -2,5 +2,5 @@
2
2
  * Convert number query parameters to string.
3
3
  */
4
4
  export type RequestQuery<T extends object> = {
5
- [K in keyof T]: T[K] extends number ? string : T[K];
5
+ [K in keyof T]: T[K] extends number|undefined ? string : T[K];
6
6
  }