Fix compile and bundle api types (#3703)

This commit is contained in:
Klaus Hvam 2020-01-17 23:45:18 +01:00 committed by Ry Dahl
parent aedf8721cf
commit 35eb79610f
3 changed files with 7 additions and 6 deletions

View file

@ -1904,7 +1904,7 @@ declare namespace Deno {
rootName: string,
sources?: Record<string, string>,
options?: CompilerOptions
): Promise<[Diagnostic[] | undefined, Record<string, string>]>;
): Promise<[Diagnostic | undefined, Record<string, string>]>;
/** Takes a root module name, and optionally a record set of sources. Resolves
* with a single JavaScript string that is like the output of a `deno bundle`
@ -1938,7 +1938,7 @@ declare namespace Deno {
rootName: string,
sources?: Record<string, string>,
options?: CompilerOptions
): Promise<[Diagnostic[] | undefined, string]>;
): Promise<[Diagnostic | undefined, string]>;
// @url js/deno.d.ts