mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-27 02:41:53 +00:00
Run prettier across sdk/base and sdk/package to apply the standardized quote style (single quotes matching web).
11 lines
309 B
TypeScript
11 lines
309 B
TypeScript
import { DefaultString } from '../actions/input/inputSpecTypes'
|
|
import { getRandomString } from './getRandomString'
|
|
|
|
export function getDefaultString(defaultSpec: DefaultString): string {
|
|
if (typeof defaultSpec === 'string') {
|
|
return defaultSpec
|
|
} else {
|
|
return getRandomString(defaultSpec)
|
|
}
|
|
}
|