typeas
Version:
Library for checking data values and type safety
10 lines (7 loc) • 376 B
text/typescript
import { EnumCheckerCustomEnum } from '../expansions/enum.cjs';
import { CreateExpression } from '../factories/expression.cjs';
import '../types/join.cjs';
type EnumCustomArg = keyof EnumCheckerCustomEnum;
type EnumValidatorArg = `${string}|${string}` | EnumCustomArg;
type EnumExpression = CreateExpression<"enum", [EnumValidatorArg | ""]>;
export type { EnumExpression };