Files
start-os/sdk/lib/util/getDefaultString.ts
2024-03-20 13:32:57 -06:00

11 lines
299 B
TypeScript

import { DefaultString } from "../config/configTypes"
import { getRandomString } from "./getRandomString"
export function getDefaultString(defaultSpec: DefaultString): string {
if (typeof defaultSpec === "string") {
return defaultSpec
} else {
return getRandomString(defaultSpec)
}
}