Installation
npm install --save @types/xml-c14n
Summary
This package contains type definitions for xml-c14n (https://github.com/deoxxa/xml-c14n).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xml-c14n.
index.d.ts
declare namespace xml_c14n {
type canonicaliseCb = (err: any, data: string) => void;
interface Options {
includeComments?: boolean | undefined;
inclusiveNamespaces?: boolean | undefined;
}
interface Canonicalize {
name(): string;
_processInner(node: Node): string;
canonicalise(node: Node, cb: canonicaliseCb): void;
}
interface CanonizationFactory {
createCanonicaliser(kind: string, options?: Options): Canonicalize;
getAlgorithm(uri: string): any;
registerAlgorithm(uri: string, implementation: any): any;
}
}
declare function xml_c14n(): xml_c14n.CanonizationFactory;
export = xml_c14n;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Konstantin Yuriev, and Max Boguslavskiy.