Updated node-jsfl-runner to 0.2.4

This commit is contained in:
Michael Randolph
2015-09-09 15:56:00 -04:00
parent b3aeee6455
commit 1eacceaab3
2 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -8,11 +8,13 @@ let myJSFL: jsfl.JSFL = {
}
}
let flashLocation: string = '';
jsfl.createJSFL(myJSFL, 'fileName.jsfl', ['Hello!'], (err: NodeJS.ErrnoException) => {
});
jsfl.runJSFL('fileName.jsfl', (err: NodeJS.ErrnoException) => {
jsfl.runJSFL(flashLocation, 'fileName.jsfl', (err: NodeJS.ErrnoException) => {
});
+3 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for node-jsfl-runner
// Type definitions for node-jsfl-runner v0.2.4
// Project: https://www.npmjs.com/package/node-jsfl-runner
// Definitions by: Michael Randolph <https://github.com/mrand01>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -28,8 +28,9 @@ declare module "node-jsfl-runner" {
/**
* Runs a JSFL file
* @param flashLocation Path to Flash executable
* @param fileName Path to JSFL file to run
* @param callback Callback
*/
function runJSFL(fileName: string, callback: (err: NodeJS.ErrnoException) => void): void;
function runJSFL(flashLocation:string, fileName: string, callback: (err: NodeJS.ErrnoException) => void): void;
}