mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 04:24:30 +08:00
sammyjs: fixed definition, align with 0.9.5 bugs (fixes test)
This commit is contained in:
27
sammyjs/sammyjs.d.ts
vendored
27
sammyjs/sammyjs.d.ts
vendored
@@ -6,26 +6,20 @@
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts"/>
|
||||
|
||||
interface SammyFunc {
|
||||
(): Sammy.Application;
|
||||
(selector: string): Sammy.Application;
|
||||
(handler: Function): Sammy.Application;
|
||||
(selector: string, handler: Function): Sammy.Application;
|
||||
}
|
||||
|
||||
declare function Sammy(): Sammy.Application;
|
||||
declare function Sammy(selector: string): Sammy.Application;
|
||||
declare function Sammy(handler: Function): Sammy.Application;
|
||||
declare function Sammy(selector: string, handler: Function): Sammy.Application;
|
||||
|
||||
interface JQueryStatic {
|
||||
sammy: SammyFunc;
|
||||
log: Function;
|
||||
}
|
||||
|
||||
declare module Sammy {
|
||||
interface SammyFunc {
|
||||
(): Sammy.Application;
|
||||
(selector: string): Sammy.Application;
|
||||
(handler: Function): Sammy.Application;
|
||||
(selector: string, handler: Function): Sammy.Application;
|
||||
}
|
||||
|
||||
export function Cache(app, options);
|
||||
export function Cache(app, options);
|
||||
export function DataCacheProxy(initial, $element);
|
||||
export var DataLocationProxy:DataLocationProxy;
|
||||
export function DefaultLocationProxy(app, run_interval_every);
|
||||
@@ -279,5 +273,10 @@ declare module Sammy {
|
||||
SessionStorage(name, element);
|
||||
isAvailable(type);
|
||||
Template(app, method_alias);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface JQueryStatic {
|
||||
sammy: Sammy.SammyFunc;
|
||||
log: Function;
|
||||
}
|
||||
Reference in New Issue
Block a user