(name?: string)
| 535 | |
| 536 | /** @internal */ |
| 537 | export const nonEmptyString = (name?: string): Config.Config<string> => { |
| 538 | const config = primitive( |
| 539 | "a non-empty text property", |
| 540 | Either.liftPredicate((text) => text.length > 0, () => configError.MissingData([], "Expected a non-empty string")) |
| 541 | ) |
| 542 | |
| 543 | return name === undefined ? config : nested(config, name) |
| 544 | } |
| 545 | |
| 546 | /** @internal */ |
| 547 | export const all = <const Arg extends Iterable<Config.Config<any>> | Record<string, Config.Config<any>>>( |
nothing calls this directly
no test coverage detected