From 6bd86406f6fa4a1edf7823657d85634d13b81eaf Mon Sep 17 00:00:00 2001 From: satoru kimura Date: Wed, 9 Apr 2014 13:09:16 +0900 Subject: [PATCH 1/2] Renamed definition file for intelligibility. --- createjs/{createjs.d.ts => createjs-lib.d.ts} | 8 ++++---- easeljs/easeljs.d.ts | 4 ++-- preloadjs/preloadjs.d.ts | 2 +- soundjs/soundjs.d.ts | 2 +- tweenjs/tweenjs.d.ts | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) rename createjs/{createjs.d.ts => createjs-lib.d.ts} (99%) diff --git a/createjs/createjs.d.ts b/createjs/createjs-lib.d.ts similarity index 99% rename from createjs/createjs.d.ts rename to createjs/createjs-lib.d.ts index 3ebfd11bf..048fde92d 100644 --- a/createjs/createjs.d.ts +++ b/createjs/createjs-lib.d.ts @@ -32,8 +32,8 @@ declare module createjs { target: any; // It is 'Object' type officially, but 'any' is easier to use. timeStamp: number; type: string; - - // other event payloads + + // other event payloads data: any; delta: number; error: string; @@ -51,7 +51,7 @@ declare module createjs { src: string; time: number; total: number; - + // methods clone(): Event; preventDefault(): void; @@ -92,7 +92,7 @@ declare module createjs { toString(): string; willTrigger(type: string): boolean; } - + export function indexOf(array: any[], searchElement: Object): number; export function proxy(method: (eventObj: Object) => boolean, scope: Object, ...arg: any[]): (eventObj: Object) => any; diff --git a/easeljs/easeljs.d.ts b/easeljs/easeljs.d.ts index 2c5be3aa3..3f629aa3f 100644 --- a/easeljs/easeljs.d.ts +++ b/easeljs/easeljs.d.ts @@ -12,10 +12,10 @@ // Library documentation : http://www.createjs.com/Docs/EaselJS/modules/EaselJS.html -/// +/// /// -// rename the native MouseEvent, to avoid conflit with createjs's MouseEvent +// rename the native MouseEvent, to avoid conflict with createjs's MouseEvent interface NativeMouseEvent extends MouseEvent { } diff --git a/preloadjs/preloadjs.d.ts b/preloadjs/preloadjs.d.ts index 142e939b6..0af5debfe 100644 --- a/preloadjs/preloadjs.d.ts +++ b/preloadjs/preloadjs.d.ts @@ -12,7 +12,7 @@ // Library documentation : http://www.createjs.com/Docs/PreloadJS/modules/PreloadJS.html -/// +/// declare module createjs { export class AbstractLoader extends EventDispatcher { diff --git a/soundjs/soundjs.d.ts b/soundjs/soundjs.d.ts index 922d11667..f5a2f9b14 100644 --- a/soundjs/soundjs.d.ts +++ b/soundjs/soundjs.d.ts @@ -12,7 +12,7 @@ // Library documentation : http://www.createjs.com/Docs/SoundJS/modules/SoundJS.html -/// +/// declare module createjs { export class FlashPlugin { diff --git a/tweenjs/tweenjs.d.ts b/tweenjs/tweenjs.d.ts index 775a05a20..f4c1dcc74 100644 --- a/tweenjs/tweenjs.d.ts +++ b/tweenjs/tweenjs.d.ts @@ -12,7 +12,7 @@ // Library documentation : http://www.createjs.com/Docs/TweenJS/modules/TweenJS.html -/// +/// declare module createjs { export class CSSPlugin { From ac17239ecfdbb21f3e31fa16cb385954c08e81bb Mon Sep 17 00:00:00 2001 From: satoru kimura Date: Wed, 9 Apr 2014 13:10:47 +0900 Subject: [PATCH 2/2] added createjs.d.ts again. --- createjs/createjs.d.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 createjs/createjs.d.ts diff --git a/createjs/createjs.d.ts b/createjs/createjs.d.ts new file mode 100644 index 000000000..15a1149a2 --- /dev/null +++ b/createjs/createjs.d.ts @@ -0,0 +1,24 @@ +// Type definitions for EaselJS 0.7.1, TweenJS 0.5.1, SoundJS 0.5.2, PreloadJS 0.4.1 +// Project: http://www.createjs.com/#!/EaselJS +// Definitions by: Pedro Ferreira , Chris Smith , Satoru Kimura +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/* + Copyright (c) 2012 Pedro Ferreira + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + +// Library documentation : http://www.createjs.com/Docs/EaselJS/modules/EaselJS.html +// Library documentation : http://www.createjs.com/Docs/PreloadJS/modules/PreloadJS.html +// Library documentation : http://www.createjs.com/Docs/SoundJS/modules/SoundJS.html +// Library documentation : http://www.createjs.com/Docs/TweenJS/modules/TweenJS.html + + +/// +/// +/// +/// +/// +