Interface BuildResult<ProvidedOptions>

interface BuildResult<ProvidedOptions> {
    errors: Message[];
    mangleCache: Record<string, string | false> | (ProvidedOptions["mangleCache"] extends Object
        ? never
        : undefined);
    metafile: Metafile | (ProvidedOptions["metafile"] extends true
        ? never
        : undefined);
    outputFiles: OutputFile[] | (ProvidedOptions["write"] extends false
        ? never
        : undefined);
    warnings: Message[];
}

Type Parameters

Properties

errors: Message[]
mangleCache: Record<string, string | false> | (ProvidedOptions["mangleCache"] extends Object
    ? never
    : undefined)

Only when "mangleCache" is present

metafile: Metafile | (ProvidedOptions["metafile"] extends true
    ? never
    : undefined)

Only when "metafile: true"

outputFiles: OutputFile[] | (ProvidedOptions["write"] extends false
    ? never
    : undefined)

Only when "write: false"

warnings: Message[]