mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
merge 036, everything broken
This commit is contained in:
10
sdk/lib/util/getDefaultString.ts
Normal file
10
sdk/lib/util/getDefaultString.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user