@types/xml-c14n
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/xml-c14n

Weekly Downloads

356

Version

0.0.3

License

MIT

Unpacked Size

4.13 kB

Total Files

5

Last publish

Collaborators

  • types