import { EnumAsserter } from "https://deno.land/x/typeguardkit@0.33.0/mod.ts";
An EnumAsserter
is an Asserter
for the union of the member types of the
provided enumObject
.
The provided enumObject
is made accessible as a property of the created
EnumAsserter
.
Example:
import { EnumAsserter } from "typeguardkit";
export enum Direction {
Up,
Right,
Down,
Left,
}
export const _Direction = new EnumAsserter("Direction", Direction);