(name?: string)
| 522 | |
| 523 | /** @internal */ |
| 524 | export const nonEmptyString = (name?: string): Config.Config<string> => { |
| 525 | const config = primitive( |
| 526 | "a non-empty text property", |
| 527 | Either.liftPredicate((text) => text.length > 0, () => configError.MissingData([], "Expected a non-empty string")) |
| 528 | ) |
| 529 | |
| 530 | return name === undefined ? config : nested(config, name) |
| 531 | } |
| 532 | |
| 533 | /** @internal */ |
| 534 | export const all = <const Arg extends Iterable<Config.Config<any>> | Record<string, Config.Config<any>>>( |
nothing calls this directly
no test coverage detected