From bffae6fcb76ce1fe73c8d074973dba50c2e942b1 Mon Sep 17 00:00:00 2001 From: Justin van Elst Date: Wed, 30 Nov 2016 15:30:25 +0100 Subject: [PATCH] Fix PreloadJs installplugin() type Fixing https://github.com/DefinitelyTyped/DefinitelyTyped/issues/4692 The docs of preloadjs http://www.createjs.com/docs/preloadjs/modules/PreloadJS.html states that the 'installPlugin' method should be able to add 'createjs.Sound' which is not a function. --- preloadjs/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preloadjs/index.d.ts b/preloadjs/index.d.ts index 1d3c96ddcb..f46898b5f5 100644 --- a/preloadjs/index.d.ts +++ b/preloadjs/index.d.ts @@ -158,7 +158,7 @@ declare namespace createjs { // methods close(): void; getItems(loaded: boolean): Object[]; - installPlugin(plugin: () => any): void; + installPlugin(plugin: any): void; loadFile(file: Object | string, loadNow?: boolean, basePath?: string): void; loadManifest(manifest: Object | string | any[], loadNow?: boolean, basePath?: string): void; registerLoader(loader: AbstractLoader): void;