0.0.3 • Published 6 months ago

@types/xml-c14n v0.0.3

Weekly downloads
263
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for xml-c14n 0.0
// Project: https://github.com/deoxxa/xml-c14n
// Definitions by: Konstantin Yuriev <https://github.com/gallowsmaker>
//                 Max Boguslavskiy <https://github.com/maxbogus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7

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: Fri, 02 Jul 2021 17:02:20 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Konstantin Yuriev, and Max Boguslavskiy.