mirror of
https://github.com/denoland/deno.git
synced 2025-08-01 17:42:32 +00:00
Fix compile and bundle api types (#3703)
This commit is contained in:
parent
aedf8721cf
commit
35eb79610f
3 changed files with 7 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue