diff options
author | monikahedman <monika_hedman@brown.edu> | 2019-07-14 17:08:03 -0400 |
---|---|---|
committer | monikahedman <monika_hedman@brown.edu> | 2019-07-14 17:08:03 -0400 |
commit | 7f011d633021fece4d071b741f8571440236ea71 (patch) | |
tree | ce2e7dc7c29a2a2ebab57efbc8001b2d753819d8 /src/client/util/Scripting.ts | |
parent | 2575564d70828820521074455383e940d521cca8 (diff) | |
parent | 7d9e29690956327d1ed9981cd2882d08b72b5c86 (diff) |
pulled from master
Diffstat (limited to 'src/client/util/Scripting.ts')
-rw-r--r-- | src/client/util/Scripting.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/util/Scripting.ts b/src/client/util/Scripting.ts index 3156c4f43..62c2cfe85 100644 --- a/src/client/util/Scripting.ts +++ b/src/client/util/Scripting.ts @@ -33,6 +33,8 @@ export interface CompileError { errors: any[]; } +export type CompileResult = CompiledScript | CompileError; + export namespace Scripting { export function addGlobal(global: { name: string }): void; export function addGlobal(name: string, global: any): void; @@ -61,7 +63,6 @@ export function scriptingGlobal(constructor: { new(...args: any[]): any }) { const scriptingGlobals: { [name: string]: any } = {}; -export type CompileResult = CompiledScript | CompileError; function Run(script: string | undefined, customParams: string[], diagnostics: any[], originalScript: string, options: ScriptOptions): CompileResult { const errors = diagnostics.some(diag => diag.category === ts.DiagnosticCategory.Error); if ((options.typecheck !== false && errors) || !script) { |