npm.io
1.4.2 • Published 2 years ago

@types/plantuml-encoder

Licence
MIT
Version
1.4.2
Deps
1
Size
5 kB
Vulns
0
Weekly
0
Stars
51.3K

Installation

npm install --save @types/plantuml-encoder

Summary

This package contains type definitions for plantuml-encoder (https://github.com/markushedvall/plantuml-encoder).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/plantuml-encoder.

index.d.ts

/// <reference types="node" />

declare namespace PlantUmlEncoder {
    /**
     * Union type for possible typed arrays.
     */
    type TypedArray =
        | Int8Array
        | Uint8Array
        | Uint8ClampedArray
        | Int16Array
        | Uint16Array
        | Int32Array
        | Uint32Array
        | Float32Array
        | Float64Array
        | BigInt64Array
        | BigUint64Array;
}

/**
 * Wrapper object for the encode and decode functions.
 */
declare const PlantUmlEncoder: {
    /**
     * Encodes PlantUML code.
     * @param puml The PlantUML code that should be encoded.
     * @returns The encoded PlantUML code.
     */
    encode: (puml: string | Buffer | PlantUmlEncoder.TypedArray | DataView | ArrayBuffer) => string;

    /**
     * Decodes encoded PlantUML code.
     * @param encodedPuml The encoded PlantUML code that should be decoded.
     * @returns The decoded PlantUML code.
     */
    decode: (encodedPuml: string) => string;
};

export = PlantUmlEncoder;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Krisztián Balla.