@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 +1 -2
- package/gen.ts +1 -2
- package/lib/interface/util.d.ts +1 -1
- package/lib/interface/util.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/interface/util.ts +1 -1
package/bin/gen.js
CHANGED
|
@@ -180,8 +180,7 @@ var CodeGenerator = /** @class */ (function () {
|
|
|
180
180
|
}
|
|
181
181
|
// utility types
|
|
182
182
|
if (ambient) {
|
|
183
|
-
|
|
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
|
-
|
|
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
|
}
|
package/lib/interface/util.d.ts
CHANGED
|
@@ -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;
|
|
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
package/src/interface/util.ts
CHANGED