From 2192405a76f8960754b15e7aef6775bed056a47e Mon Sep 17 00:00:00 2001 From: Neil Stalker Date: Mon, 24 Jun 2013 22:51:29 +0100 Subject: [PATCH] Fix definitions for TS 0.9 hammer.js jake jszip.js dust.js google,analytics linq.js --- dustjs-linkedin/dustjs-linkedin.d.ts | 4 ++-- google.analytics/ga.d.ts | 2 +- hammerjs/hammerjs.d.ts | 2 +- jake/jake.d.ts | 24 ++++++++++++------------ jszip/jszip.d.ts | 2 +- linq/linq.d.ts | 2 +- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/dustjs-linkedin/dustjs-linkedin.d.ts b/dustjs-linkedin/dustjs-linkedin.d.ts index fd6558332..9c7f63630 100644 --- a/dustjs-linkedin/dustjs-linkedin.d.ts +++ b/dustjs-linkedin/dustjs-linkedin.d.ts @@ -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; }; } \ No newline at end of file diff --git a/google.analytics/ga.d.ts b/google.analytics/ga.d.ts index b24bc6649..c7de005e9 100644 --- a/google.analytics/ga.d.ts +++ b/google.analytics/ga.d.ts @@ -3,7 +3,7 @@ // Definitions by: Ronnie Haakon Hegelund // Definitions: https://github.com/borisyankov/DefinitelyTyped -class Tracker { +declare class Tracker { _trackPageview(): void; _getName(): string; _getAccount(): string; diff --git a/hammerjs/hammerjs.d.ts b/hammerjs/hammerjs.d.ts index 4283191bc..f933058ce 100644 --- a/hammerjs/hammerjs.d.ts +++ b/hammerjs/hammerjs.d.ts @@ -52,7 +52,7 @@ interface HammerDirectionEvent extends HammerEvent { distanceY: number; } -class Hammer { +declare class Hammer { constructor (element: any, options?: HammerOptions); ondragstart: (event: HammerDirectionEvent) => void; diff --git a/jake/jake.d.ts b/jake/jake.d.ts index ec6f20d2b..bf0f77a60 100644 --- a/jake/jake.d.ts +++ b/jake/jake.d.ts @@ -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 ////////////////////////////////////////////////////////////////////// diff --git a/jszip/jszip.d.ts b/jszip/jszip.d.ts index af6c58329..0ed833fed 100644 --- a/jszip/jszip.d.ts +++ b/jszip/jszip.d.ts @@ -3,7 +3,7 @@ // Definitions by: mzeiher // Definitions: https://github.com/borisyankov/DefinitelyTyped -module jszip { +declare module jszip { export interface JSZip { /** * Get a file from the archive diff --git a/linq/linq.d.ts b/linq/linq.d.ts index 6cee18a08..960b20a90 100644 --- a/linq/linq.d.ts +++ b/linq/linq.d.ts @@ -5,7 +5,7 @@ // todo: jQuery plugin, RxJS Binding -module linq { +declare module linq { interface EnumerableStatic { Choice(...contents: any[]): Enumerable;