Function: validateOptionalTokenName()
Gala Launchpad SDK 9.0.0-rc.5 / index / validateOptionalTokenName
Function: validateOptionalTokenName()
validateOptionalTokenName(
tokenName,field,constraint):void
Defined in: packages/launchpad-sdk/dist/utils/validation-helpers.d.ts:368
Validates an optional token name (allows undefined/null, but validates if present)
Use this for optional token name fields that should be validated when provided.
Parameters
tokenName
unknown
The token name to validate (may be undefined/null)
field
string
The field name for error messages
constraint
The route's token name constraint
Returns
void
Throws
If token name is provided but invalid
Since
6.12.0