diff options
author | yipstanley <stanley_yip@brown.edu> | 2019-07-13 17:42:36 -0400 |
---|---|---|
committer | yipstanley <stanley_yip@brown.edu> | 2019-07-13 17:42:36 -0400 |
commit | 2d53f5294fdd3ac123503bcbb30b73967f4aba14 (patch) | |
tree | bc678894963b3e1625fe710d22fd44e4049c504d /src/client/util/Scripting.ts | |
parent | 4390106eb59a90283395ae5a18a0451e43166889 (diff) | |
parent | 2e75ca29e6e17d637cdad5992ee55e921559922a (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
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) { |