UNPKG

@nodecfdi/cfdi-cleaner

Version:

Librería para limpiar comprobantes fiscales digitales v3.3 y v4.0

22 lines (21 loc) 745 B
/** * Helper class to work with xsi:schemaLocation attribute */ export default class SchemaLocation { private _pairs; /** * SchemaLocation constructor * * @param pairs - On each entry: key is namespace, value is location * */ constructor(pairs: Record<string, string>); static createFromValue(value: string): SchemaLocation; static valueToComponents(schemaLocationValue: string): string[]; static createFromComponents(components: string[]): SchemaLocation; getPairs(): Record<string, string>; setPair(namespace: string, location: string): void; filterUsingNamespace(filterFunction: (key: string) => boolean): void; asValue(): string; import(source: SchemaLocation): void; }