diff options
author | Klaus Hvam <flachendk@gmail.com> | 2020-01-17 23:45:18 +0100 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2020-01-17 17:45:18 -0500 |
commit | 35eb79610f4b451af1d4a9c286fd63875d28bca5 (patch) | |
tree | f8cd5e2d16be4fe621d6045130ba2ef5a63373b4 /cli/js/compiler_api.ts | |
parent | aedf8721cf7f696326bbdcb23ea6a464c55f081c (diff) |
Fix compile and bundle api types (#3703)
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, |