Fix StartOS 0.4 TypeScript packaging to match SDK API

This commit is contained in:
MacPro
2026-04-09 15:10:44 -05:00
parent 68ec875ee7
commit 8298c083c7
3436 changed files with 867051 additions and 92 deletions
+21
View File
@@ -0,0 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDefaultString = getDefaultString;
const getRandomString_1 = require("./getRandomString");
/**
* Resolves a DefaultString spec into a concrete string value.
* If the spec is a plain string, returns it directly.
* If it is a random-string specification, generates a random string accordingly.
*
* @param defaultSpec - A string literal or a random-string generation spec
* @returns The resolved default string value
*/
function getDefaultString(defaultSpec) {
if (typeof defaultSpec === 'string') {
return defaultSpec;
}
else {
return (0, getRandomString_1.getRandomString)(defaultSpec);
}
}
//# sourceMappingURL=getDefaultString.js.map