3.2.4 • Published 6 months ago

@types/humane-js v3.2.4

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

Installation

npm install --save @types/humane-js

Summary

This package contains type definitions for Humane (http://wavded.github.com/humane-js/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/humane-js.

index.d.ts

// Type definitions for Humane 3.2
// Project: http://wavded.github.com/humane-js/
// Definitions by: jmvrbanac <https://github.com/jmvrbanac>, stof <https://github.com/stof>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

interface HumaneMessageOptions {
    addnCls?: string | undefined;
    timeout?: number | undefined;
    waitForMove?: boolean | undefined;
    clickToClose?: boolean | undefined;
}

interface HumaneOptions extends HumaneMessageOptions {
    baseCls?: string | undefined;
    container?: Element | undefined;
}

type completionCallback = () => void;
type logMessage = string | ReadonlyArray<string>;

interface SpawnLogFunction {
    (message: logMessage, options?: HumaneMessageOptions): Humane;
    (message: logMessage, callback?: completionCallback, options?: HumaneMessageOptions): Humane;
}

interface Humane {
    queue: string[];
    baseCls: string;
    container: Element;
    addnCls: string;
    timeout: number;
    waitForMove: boolean;
    clickToClose: boolean;

    create(options?: HumaneOptions): Humane;
    info?: SpawnLogFunction | undefined;
    error?: SpawnLogFunction | undefined;
    spawn(options: HumaneMessageOptions): SpawnLogFunction;
    remove(cb?: completionCallback): void;
    log(message: logMessage, options?: HumaneMessageOptions): Humane;
    log(message: logMessage, callback?: completionCallback, options?: HumaneMessageOptions): Humane;
}

declare var humane: Humane;

export = humane;

Additional Details

  • Last updated: Thu, 08 Jul 2021 14:22:58 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by jmvrbanac, and stof.

3.2.2

7 months ago

3.2.4

6 months ago

3.2.3

6 months ago

3.2.1

3 years ago

3.2.0

5 years ago