Skip to main content

requireText

ParallelModel TypeScript SDK


Function: requireText()

requireText(v, name): string

Defined in: transport.ts:101

Validates that a string is non-empty and returns the original value.

Parameters​

v​

string

Value to validate or normalize.

name​

string

Name used in the validation error message.

Returns​

string

The original non-empty string.