livr
Version:
Lightweight validator supporting Language Independent Validation Rules Specification
10 lines (8 loc) • 305 B
TypeScript
// Type inference for 'positive_integer' rule
import type { RuleTypeDef } from '../../../types/inference';
declare module '../../../types/inference' {
interface RuleTypeRegistry {
positive_integer: RuleTypeDef<number, false, false>;
positiveInteger: RuleTypeRegistry['positive_integer'];
}
}