typia
Version:
Superfast runtime validators with only one line
15 lines (12 loc) • 305 B
text/typescript
import { $any } from "../$any";
import { $throws } from "../$throws";
import { is } from "../is";
export const clone = (method: string) => ({
...is(),
throws: $throws(`misc.${method}`),
any: $any,
});
export const prune = (method: string) => ({
...is(),
throws: $throws(`misc.${method}`),
});