Fix StartOS 0.4 TypeScript packaging to match SDK API
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.nullIfEmpty = nullIfEmpty;
|
||||
/**
|
||||
* A useful tool when doing a getInputSpec.
|
||||
* Look into the inputSpec {@link FileHelper} for an example of the use.
|
||||
* @param s
|
||||
* @returns
|
||||
*/
|
||||
function nullIfEmpty(s) {
|
||||
if (s === null)
|
||||
return null;
|
||||
return Object.keys(s).length === 0 ? null : s;
|
||||
}
|
||||
//# sourceMappingURL=nullIfEmpty.js.map
|
||||
Reference in New Issue
Block a user