diff options
Diffstat (limited to 'cli/js/compiler_api.ts')
-rw-r--r-- | cli/js/compiler_api.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/compiler_api.ts b/cli/js/compiler_api.ts index 077d19bdd..487807d66 100644 --- a/cli/js/compiler_api.ts +++ b/cli/js/compiler_api.ts @@ -328,7 +328,7 @@ export function compile( rootName: string, sources?: Record<string, string>, options?: CompilerOptions -): Promise<[Diagnostic[] | undefined, Record<string, string>]> { +): Promise<[Diagnostic | undefined, Record<string, string>]> { const payload = { rootName: sources ? rootName : checkRelative(rootName), sources, @@ -377,7 +377,7 @@ export function bundle( rootName: string, sources?: Record<string, string>, options?: CompilerOptions -): Promise<[Diagnostic[] | undefined, string]> { +): Promise<[Diagnostic | undefined, string]> { const payload = { rootName: sources ? rootName : checkRelative(rootName), sources, |