forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
node-jsfl-runner.d.ts
36 lines (32 loc) · 1.24 KB
/
node-jsfl-runner.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// 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
/// <reference path="../node/node.d.ts" />
declare module "node-jsfl-runner" {
interface JSFL {
init: (...args: any[]) => void;
[index: string]: any;
}
/**
* Creates a JSFL file from a JSFL object
* @param jsfl A valid JSFL object
* @param fileName Path to output JSFL file location
* @param initParams Parameters to pass to JSFL init function
* @param callback Callback
*/
function createJSFL(jsfl: JSFL, fileName: string, initParams: Array<any>, callback: (err: NodeJS.ErrnoException) => void): void;
/**
* Deletes a JSFL file
* @param fileName Path to JSFL file to delete
* @param callback Callback
*/
function deleteJSFL(fileName: string, callback: (err: NodeJS.ErrnoException) => void): void;
/**
* Runs a JSFL file
* @param flashLocation Path to Flash executable
* @param fileName Path to JSFL file to run
* @param callback Callback
*/
function runJSFL(flashLocation:string, fileName: string, callback: (err: NodeJS.ErrnoException) => void): void;
}