Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 663 Bytes

types.literaltype.typevalidator.md

File metadata and controls

23 lines (14 loc) · 663 Bytes

Home > @skunkteam/types > LiteralType > typeValidator

LiteralType.typeValidator() method

The actual validation-logic.

Signature:

protected typeValidator(input: unknown): Result<ResultType>;

Parameters

Parameter Type Description
input unknown the input value to be validated

Returns:

Result<ResultType>