Skip to content

SudoSOS Back-end API / internal/spec/string-spec / nonZeroString

Function: nonZeroString() ​

ts
function nonZeroString(p): 
  | Fail<ValidationError>
| Pass<string>;

Checks if the string attribute is not an empty string.

Parameters ​

ParameterType
pstring

Returns ​

| Fail<ValidationError> | Pass<string>