mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #748 from oising/master
Updated sammyjs.d.ts for typescript 0.9.x
This commit is contained in:
Vendored
+19
-11
@@ -1,16 +1,28 @@
|
||||
// Type definitions for Sammy.js
|
||||
// Project: http://sammyjs.org/
|
||||
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
|
||||
// - Updated for TypeScript 0.9.x by: Oisin Grehan <https://github.com/oising>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts"/>
|
||||
|
||||
module Sammy {
|
||||
export function (): Sammy.Application;
|
||||
export function (selector: string): Sammy.Application;
|
||||
export function (handler: Function): Sammy.Application;
|
||||
export function (selector: string, handler: Function): Sammy.Application;
|
||||
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;
|
||||
}
|
||||
|
||||
declare module Sammy {
|
||||
|
||||
export function Cache(app, options);
|
||||
export function DataCacheProxy(initial, $element);
|
||||
@@ -201,8 +213,7 @@ module Sammy {
|
||||
trigger(name, data);
|
||||
wait(): void;
|
||||
}
|
||||
|
||||
|
||||
|
||||
export interface StoreOptions {
|
||||
name?: string;
|
||||
element?: string;
|
||||
@@ -241,7 +252,4 @@ module Sammy {
|
||||
isAvailable(type);
|
||||
Template(app, method_alias);
|
||||
}
|
||||
}
|
||||
interface JQueryStatic {
|
||||
sammy: Sammy;
|
||||
}
|
||||
Reference in New Issue
Block a user