Browse Source

Cleanup duktape.d.ts a bit, adding require declaration

Shaddock Heath 9 years ago
parent
commit
3b33b72d07

+ 0 - 3
Script/AtomicEditor/hostExtensions/coreExtensions/ProjectBasedExtensionLoader.ts

@@ -22,9 +22,6 @@
 
 
 import * as EditorEvents from "../../editor/EditorEvents";
 import * as EditorEvents from "../../editor/EditorEvents";
 
 
-// Duktape require isn't recognized as a function, but can be used as one
-declare function require(filename: string): any;
-
 /**
 /**
  * Resource extension that supports the web view typescript extension
  * Resource extension that supports the web view typescript extension
  */
  */

+ 2 - 1
Script/TypeScript/duktape.d.ts

@@ -7,7 +7,8 @@ declare interface Console {
 
 
 declare var console: Console;
 declare var console: Console;
 
 
-//export function require(filename: string) : any;
+// Duktape require isn't recognized as a function, but can be used as one
+declare function require(filename: string): any;
 
 
 declare interface DuktapeModule {
 declare interface DuktapeModule {
     modSearch(id: string, require, exports, module);
     modSearch(id: string, require, exports, module);