You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `getTrimmedThrow(key)`: Retrieves, trims, and throws an error if the variable is missing or empty after trimming.
269
266
- `getValidatedThrow(key, validator)`: Retrieves and validates using a `RegExp` or a custom function. The validator function should return an error message `string` on failure, or `null`/`undefined` on success. It can also throw an error directly.
270
267
- `getDefaultIfInvalid(key, defaultValue, validator)`: Retrieves and validates using a `RegExp` or a custom function. If validation fails (regex mismatch, function returns anything other than `null`/`undefined`, or function throws) or the variable is not found, it returns the specified `defaultValue`.
271
-
- `getIntegerThrowInvalid(key)`: Retrieves and converts to an integer. Throws if it exists but is not a valid integer.
272
268
- `getIntegerDefault(key, defaultValue)`: Retrieves as an integer, or returns `defaultValue` if not found or invalid.
273
269
- `getIntegerThrow(key)`: Retrieves as an integer, throws if missing or invalid.
0 commit comments