mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
// 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/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
export 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
|
|
*/
|
|
export 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
|
|
*/
|
|
export 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
|
|
*/
|
|
export function runJSFL(flashLocation: string, fileName: string, callback: (err: NodeJS.ErrnoException) => void): void;
|