From fe4b190435139e5aea154f8321250170d3702d8e Mon Sep 17 00:00:00 2001 From: Derek Cicerone Date: Thu, 24 Oct 2013 19:10:25 -0400 Subject: [PATCH] Fix future bug in require.d.ts Callbacks need to use 'Function' if the arguments to it aren't known ahead of time - see discussion here: https://typescript.codeplex.com/discussions/462819 --- requirejs/require.d.ts | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/requirejs/require.d.ts b/requirejs/require.d.ts index 2c7a1ca04..89c6f97f6 100644 --- a/requirejs/require.d.ts +++ b/requirejs/require.d.ts @@ -1,26 +1,26 @@ -/* +/* require-2.1.8.d.ts may be freely distributed under the MIT license. Copyright (c) 2013 Josh Baldwin https://github.com/jbaldwin/require.d.ts 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 +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 +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 +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. */ @@ -70,7 +70,7 @@ interface RequireConfig { // The root path to use for all module lookups. baseUrl?: string; - // Path mappings for module names not found directly under + // Path mappings for module names not found directly under // baseUrl. paths?: { [key: string]: any; }; @@ -222,7 +222,7 @@ interface Require { * Configure require.js **/ config(config: RequireConfig): Require; - + /** * CommonJS require call * @param module Module to load @@ -242,7 +242,7 @@ interface Require { * @see Require() * @param ready Called when required modules are ready. **/ - (modules: string[], ready: (...modules: any[]) => void ): void; + (modules: string[], ready: Function): void; /** * Generate URLs from require module