mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Update index.d.ts removed fromjs overload that no longer exists in latest knockout.mapping, and added much better type safety for "fromJS". * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * fix for typescript version. * more typescript versioning fixes. * fix for minor bug. * yet another test fix. * yet another test fix.
49 lines
1.2 KiB
TypeScript
49 lines
1.2 KiB
TypeScript
// Type definitions for KoLite 1.1
|
|
// Project: https://github.com/CodeSeven/kolite
|
|
// Definitions by: Boris Yankov <https://github.com/borisyankov>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
/// <reference types="jquery" />
|
|
/// <reference types="knockout" />
|
|
|
|
|
|
// Activity /////////////////////////////////////////////
|
|
|
|
interface KoLiteActivityOptions {
|
|
color?: any;
|
|
segments?: number;
|
|
space?: number;
|
|
length?: number;
|
|
width?: number;
|
|
speed?: number;
|
|
align?: string;
|
|
valign?: string;
|
|
padding?: number;
|
|
}
|
|
|
|
interface KoLiteActivity {
|
|
(options: KoLiteActivityOptions): JQuery;
|
|
defaults: KoLiteActivityOptions;
|
|
getOpacity(options: { steps?: number; segments?: number; opacity?: number; }, i: number): number;
|
|
}
|
|
|
|
interface KoLiteActivityDefaultOptions {
|
|
activityClass?: string,
|
|
container?: string,
|
|
inactiveClass?: string
|
|
}
|
|
|
|
interface KoLiteActivityBindingHandler extends KnockoutBindingHandler {
|
|
defaultOptions: KoLiteActivityDefaultOptions
|
|
}
|
|
|
|
interface KnockoutBindingHandlers {
|
|
activity: KoLiteActivityBindingHandler;
|
|
}
|
|
|
|
interface JQuery {
|
|
activity: KoLiteActivity;
|
|
activityEx(isLoading: boolean): JQuery;
|
|
}
|