mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
existing build errors, fixing for travis-ci
This commit is contained in:
Vendored
+1
-1
@@ -30,7 +30,7 @@ interface KnockoutCommandStatic {
|
||||
}
|
||||
|
||||
interface KnockoutUtils {
|
||||
wrapAccessor(accessor): Function;
|
||||
wrapAccessor(accessor: any): Function;
|
||||
}
|
||||
|
||||
interface KnockoutBindingHandlers {
|
||||
|
||||
Vendored
+1
-1
@@ -11,7 +11,7 @@
|
||||
|
||||
interface DirtyFlag {
|
||||
isDirty: KnockoutComputed<boolean>;
|
||||
new (objectToTrack: any, isInitiallyDirty?: boolean, hashFunction?: () => any);
|
||||
new (objectToTrack: any, isInitiallyDirty?: boolean, hashFunction?: () => any): any;
|
||||
reset(): void;
|
||||
}
|
||||
|
||||
|
||||
Vendored
+3
-75
@@ -4,78 +4,6 @@
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts" />
|
||||
/// <reference path="../knockout/knockout.d.ts" />
|
||||
|
||||
|
||||
// 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 KnockoutBindingHandlers {
|
||||
activity: KnockoutBindingHandler;
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
activity: KoLiteActivity;
|
||||
activityEx(isLoading: boolean): JQuery;
|
||||
}
|
||||
|
||||
|
||||
// DirtyFlag /////////////////////////////////////////////
|
||||
|
||||
interface DirtyFlag {
|
||||
isDirty: KnockoutComputed<boolean>;
|
||||
new (objectToTrack: any, isInitiallyDirty?: boolean, hashFunction?: () => any);
|
||||
reset(): void;
|
||||
}
|
||||
|
||||
interface KnockoutStatic {
|
||||
DirtyFlag: DirtyFlag;
|
||||
}
|
||||
|
||||
|
||||
// Command /////////////////////////////////////////////
|
||||
|
||||
interface KoliteCommand {
|
||||
canExecute: KnockoutComputed<boolean>;
|
||||
execute(...args: any[]): any;
|
||||
}
|
||||
|
||||
interface KoliteAsyncCommand extends KoliteCommand {
|
||||
isExecuting: KnockoutObservable<boolean>;
|
||||
}
|
||||
|
||||
interface KoLiteCommandOptions {
|
||||
execute(...args: any[]): any;
|
||||
canExecute?: (isExecuting: boolean) => any;
|
||||
}
|
||||
|
||||
interface KnockoutStatic {
|
||||
command(options: KoLiteCommandOptions): KoliteCommand;
|
||||
asyncCommand(options: KoLiteCommandOptions): KoliteAsyncCommand;
|
||||
}
|
||||
|
||||
interface KnockoutUtils {
|
||||
wrapAccessor(accessor): Function;
|
||||
}
|
||||
|
||||
interface KnockoutBindingHandlers {
|
||||
command: KnockoutBindingHandler;
|
||||
}
|
||||
/// <reference path="knockout.activity.d.ts" />
|
||||
/// <reference path="knockout.command.d.ts" />
|
||||
/// <reference path="knockout.dirtyFlag.d.ts" />
|
||||
|
||||
Reference in New Issue
Block a user