@bscotch/yy
Version:
Stringify, parse, read, and write GameMaker yy and yyp files.
17 lines • 616 B
TypeScript
/**
* Add a script to a project if it doesn't already exist.
* In either case, if `content` is provided then overwrite the
* script with whatever is in that parameter.
*/
export declare function addScript(yypPath: string, scriptName: string, content?: string): Promise<{
result: 'updated' | 'created' | 'noop';
}>;
/**
* List all yy files with the target folder that are nested one folder deep.
* E.g. in `scripts` find `scripts/my_script/my_script.yy` etc.
*/
export declare function listYyFiles(inFolder: string): Promise<{
path: string;
name: string;
}[]>;
//# sourceMappingURL=scripts.d.ts.map