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