import { option } from "https://deno.land/x/typeguardkit@0.33.0/mod.ts";
option
can be used to create an OptionAsserter
without specifying a
typeName
.
Example:
import { _string, option } from "typeguardkit";
export const _OptionalString = option(_string);
Type Parameters
DefinedTypeAsserter extends Asserter<unknown>
Parameters
definedTypeAsserter: DefinedTypeAsserter