Remix
Remix
remix/data-schema · FunctionView Source

literal

Summary

Create a schema that accepts a single literal value using strict equality (===).

Signature

function literal<value>(literalValue: value): Schema<unknown, value>;

Parameters

literalValue

The literal value to match

Returns

A schema that produces the literal type