mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-04 12:10:30 +08:00
35 lines
869 B
TypeScript
35 lines
869 B
TypeScript
// Type definitions for jStorage 0.4.0
|
|
// Project: https://github.com/hakimel/Ladda
|
|
// Definitions by: Danil Flores <https://github.com/dflor003/>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
declare module Ladda {
|
|
|
|
interface ILaddaButton {
|
|
start(): ILaddaButton;
|
|
|
|
stop(): ILaddaButton;
|
|
|
|
toggle(): ILaddaButton;
|
|
|
|
setProgress(progress: number): ILaddaButton;
|
|
|
|
enable(): ILaddaButton;
|
|
|
|
disable(): ILaddaButton;
|
|
|
|
isLoading(): boolean;
|
|
}
|
|
|
|
interface ILaddaOptions {
|
|
timeout?: number;
|
|
callback?: (instance: ILaddaButton) => void;
|
|
}
|
|
|
|
function bind(target: HTMLElement, options?: ILaddaOptions): void;
|
|
function bind(cssSelector: string, options?: ILaddaOptions): void;
|
|
|
|
function create(button: HTMLElement): ILaddaButton;
|
|
|
|
function stopAll(): void;
|
|
} |