Constant field. Field matching only one pre-defined value. This uses === to compare. Try marking the value as const for the typings to work.
===
as const
const schema1 = fields.constant("hello" as const);const schema2 = fields.constant(1 as const);const schema3 = fields.constant(Symbol("hello") as const);schema1.create("hello");schema2.create(1);schema3.create("hello");
Generated using TypeDoc
Constant field. Field matching only one pre-defined value. This uses
===to compare. Try marking the valueas constfor the typings to work.