typeas
Version:
Library for checking data values and type safety
12 lines (9 loc) • 511 B
text/typescript
import { StringCheckerCustomPattern } from '../expansions/string.cjs';
import { CreateExpression } from '../factories/expression.cjs';
import { IntegerString } from '../types/integer-string.cjs';
import '../types/join.cjs';
type StringCustomPatternArg = keyof StringCheckerCustomPattern;
type StringExpression = CreateExpression<"string", [
`/${string}/` | `${IntegerString}~` | `~${IntegerString}` | `${IntegerString}~${IntegerString}` | StringCustomPatternArg | ""
]>;
export type { StringExpression };