Fix definitions for TS 0.9

hammer.js
jake
jszip.js
dust.js
google,analytics
linq.js
This commit is contained in:
Neil Stalker
2013-06-24 22:51:29 +01:00
parent beae1ebd88
commit 2192405a76
6 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -158,11 +158,11 @@ declare module "dustjs-linkedin" {
export function escapeHtml(html: string): string;
export function escapeJs(js: string): string;
declare var helpers: {
var helpers: {
[key: string]: (chk: Chunk, ctx: Context, bodies?: any, params?: any) => any;
};
declare var filters: {
var filters: {
[key: string]: (value: string) => string;
};
}
+1 -1
View File
@@ -3,7 +3,7 @@
// Definitions by: Ronnie Haakon Hegelund <http://ronniehegelund.blogspot.dk>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
class Tracker {
declare class Tracker {
_trackPageview(): void;
_getName(): string;
_getAccount(): string;
+1 -1
View File
@@ -52,7 +52,7 @@ interface HammerDirectionEvent extends HammerEvent {
distanceY: number;
}
class Hammer {
declare class Hammer {
constructor (element: any, options?: HammerOptions);
ondragstart: (event: HammerDirectionEvent) => void;
+12 -12
View File
@@ -8,28 +8,28 @@
/**
* Complets an asynchronous task, allowing Jake's execution to proceed to the next task
*/
function complete(): void;
declare function complete(): void;
/**
* Creates a description for a Jake Task (or FileTask, DirectoryTask). When invoked, the description that iscreated will be associated with whatever Task is created next.
* @param description The description for the Task
*/
function desc(description:string): void;
declare function desc(description:string): void;
/**
* Creates a Jake DirectoryTask. Can be used as a prerequisite for FileTasks, or for simply ensuring a directory exists for use with a Task's action.
* @param name The name of the DiretoryTask
*/
function directory(name:string): jake.DirectoryTask;
declare function directory(name:string): jake.DirectoryTask;
/**
* Causes Jake execution to abort with an error. Allows passing an optional error code, which will be used to set the exit-code of exiting process.
* @param err The error to thow when aborting execution. If this argument is an Error object, it will simply be thrown. If a String, it will be used as the error-message. (If it is a multi-line String, the first line will be used as the Error message, and the remaining lines will be used as the error-stack.)
*/
function fail(...err:string[]): void;
function fail(...err:Error[]): void;
function fail(...err:any[]): void;
declare function fail(...err:string[]): void;
declare function fail(...err:Error[]): void;
declare function fail(...err:any[]): void;
/**
* Creates a Jake FileTask.
@@ -38,14 +38,14 @@ function fail(...err:any[]): void;
* @param action The action to perform for this task
* @param opts Perform this task asynchronously. If you flag a task with this option, you must call the global `complete` method inside the task's action, for execution to proceed to the next task.
*/
function file(name:string, prereqs?:string[], action?:()=>void, opts?:jake.FileTaskOptions): jake.FileTask;
declare function file(name:string, prereqs?:string[], action?:()=>void, opts?:jake.FileTaskOptions): jake.FileTask;
/**
* Creates a namespace which allows logical grouping of tasks, and prevents name-collisions with task-names. Namespaces can be nested inside of other namespaces.
* @param name The name of the namespace
* @param scope The enclosing scope for the namespaced tasks
*/
function namespace(name:string, scope:()=>void): void;
declare function namespace(name:string, scope:()=>void): void;
/**
* @param name The name of the Task
@@ -53,11 +53,11 @@ function namespace(name:string, scope:()=>void): void;
* @param action The action to perform for this task
* @param opts
*/
function task(name:string, prereqs?:string[], action?:(...params:any[])=>any, opts?:jake.TaskOptions): jake.Task;
function task(name:string, action?:(...params:any[])=>any, opts?:jake.TaskOptions): jake.Task;
function task(name:string, opts?:jake.TaskOptions, action?:(...params:any[])=>any): jake.Task;
declare function task(name:string, prereqs?:string[], action?:(...params:any[])=>any, opts?:jake.TaskOptions): jake.Task;
declare function task(name:string, action?:(...params:any[])=>any, opts?:jake.TaskOptions): jake.Task;
declare function task(name:string, opts?:jake.TaskOptions, action?:(...params:any[])=>any): jake.Task;
module jake{
declare module jake{
////////////////////////////////////////////////////////////////////////////////////
// File-utils //////////////////////////////////////////////////////////////////////
+1 -1
View File
@@ -3,7 +3,7 @@
// Definitions by: mzeiher <https://github.com/mzeiher>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
module jszip {
declare module jszip {
export interface JSZip {
/**
* Get a file from the archive
+1 -1
View File
@@ -5,7 +5,7 @@
// todo: jQuery plugin, RxJS Binding
module linq {
declare module linq {
interface EnumerableStatic {
Choice(...contents: any[]): Enumerable;