facturacionelectronicapy-ts-xmlgen
Version:
Genera el contenido del archivo XML del Documento electrónico exigido por la SET
19 lines (18 loc) • 776 B
TypeScript
import { z } from 'zod';
import { SecureOmit } from '../../types/helpers';
export default class NumberLength {
readonly ctx: z.RefinementCtx;
intPart: string;
decimalPart: string;
path: string;
constructor(value: number, ctx: z.RefinementCtx);
addError(message: string): void;
/** No es necesario si el mínimo es menor o igual a 1 */
int(message?: string): SecureOmit<typeof this, "minDecimals" | "maxDecimals" | "decimalsLength">;
min(min: number, message?: string): this;
max(max: number, message?: string): this;
length(len: number, message?: string): this;
minDecimals(min: number, message?: string): this;
maxDecimals(max: number, message?: string): this;
decimalsLength(length: number, message?: string): this;
}