scripting.d.ts 397 B

1234567891011121314
  1. export interface ScriptingAPI {
  2. parse(rawCodeString: string): string;
  3. /**
  4. * Evaluates the given JavaScript code and returns the result, throwing if there were errors.
  5. */
  6. evalJavaScript(code: string): any;
  7. /**
  8. * Evaluates the given TwineScript code and returns the result, throwing if there were errors.
  9. */
  10. evalTwineScript(code: string): any;
  11. }
  12. export {};