mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Updated node-jsfl-runner to 0.2.4
This commit is contained in:
@@ -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
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user