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

3.2.4 • Public • Published

Installation

npm install --save @types/humane-js

Summary

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

Details

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

index.d.ts

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 | readonly 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: Mon, 20 Nov 2023 23:36:24 GMT
  • Dependencies: none

Credits

These definitions were written by jmvrbanac, and stof.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/humane-js

Weekly Downloads

109

Version

3.2.4

License

MIT

Unpacked Size

5.15 kB

Total Files

5

Last publish

Collaborators

  • types