Hyperlinkv0.8.0-beta.28

Config

Config.nonEmptyStringfunctioneffect/Config.ts:925
(name?: string): Config<string>

Creates a config for a non-empty string value. Fails if the value is an empty string.

When to use

Use to read a string config value that must contain at least one character.

Details

Shortcut for Config.schema(Schema.NonEmptyString, name).

constructorsstring
Source effect/Config.ts:9253 lines
export function nonEmptyString(name?: string) {
  return schema(Schema.NonEmptyString, name)
}