Skip to content

Commit 0b99f8e

Browse files
committed
- build for 34.0
1 parent ba26293 commit 0b99f8e

21 files changed

+350
-355
lines changed

dist/check-tsconfig.d.ts

-3
This file was deleted.

dist/check-tsconfig.d.ts.map

-1
This file was deleted.

dist/context.d.ts

+2-18
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,19 @@
11
import { PluginContext } from "rollup";
2-
export interface IContext {
3-
warn(message: string | (() => string)): void;
4-
error(message: string | (() => string)): void;
5-
info(message: string | (() => string)): void;
6-
debug(message: string | (() => string)): void;
7-
}
82
export declare enum VerbosityLevel {
93
Error = 0,
104
Warning = 1,
115
Info = 2,
126
Debug = 3
137
}
14-
/** mainly to be used in options hook, but can be used in other hooks too */
15-
export declare class ConsoleContext implements IContext {
16-
private verbosity;
17-
private prefix;
18-
constructor(verbosity: VerbosityLevel, prefix?: string);
19-
warn(message: string | (() => string)): void;
20-
error(message: string | (() => string)): void;
21-
info(message: string | (() => string)): void;
22-
debug(message: string | (() => string)): void;
23-
}
248
/** cannot be used in options hook (which does not have this.warn and this.error), but can be in other hooks */
25-
export declare class RollupContext implements IContext {
9+
export declare class RollupContext {
2610
private verbosity;
2711
private bail;
2812
private context;
2913
private prefix;
3014
constructor(verbosity: VerbosityLevel, bail: boolean, context: PluginContext, prefix?: string);
3115
warn(message: string | (() => string)): void;
32-
error(message: string | (() => string)): void;
16+
error(message: string | (() => string)): void | never;
3317
info(message: string | (() => string)): void;
3418
debug(message: string | (() => string)): void;
3519
}

dist/context.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/diagnostics.d.ts

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import * as tsTypes from "typescript";
2+
import { RollupContext } from "./context";
3+
export interface IDiagnostics {
4+
flatMessage: string;
5+
formatted: string;
6+
fileLine?: string;
7+
category: tsTypes.DiagnosticCategory;
8+
code: number;
9+
type: string;
10+
}
11+
export declare function convertDiagnostic(type: string, data: tsTypes.Diagnostic[]): IDiagnostics[];
12+
export declare function printDiagnostics(context: RollupContext, diagnostics: IDiagnostics[], pretty?: boolean): void;
13+
//# sourceMappingURL=diagnostics.d.ts.map

dist/diagnostics.d.ts.map

+1
Original file line numberDiff line numberDiff line change

dist/get-options-overrides.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as tsTypes from "typescript";
22
import { IOptions } from "./ioptions";
3-
import { IContext } from "./context";
3+
import { RollupContext } from "./context";
44
export declare function getOptionsOverrides({ useTsconfigDeclarationDir, cacheRoot }: IOptions, preParsedTsconfig?: tsTypes.ParsedCommandLine): tsTypes.CompilerOptions;
5-
export declare function createFilter(context: IContext, pluginOptions: IOptions, parsedConfig: tsTypes.ParsedCommandLine): (id: unknown) => boolean;
5+
export declare function createFilter(context: RollupContext, pluginOptions: IOptions, parsedConfig: tsTypes.ParsedCommandLine): (id: unknown) => boolean;
66
//# sourceMappingURL=get-options-overrides.d.ts.map

dist/get-options-overrides.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/index.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/parse-tsconfig.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { IContext } from "./context";
1+
import { RollupContext } from "./context";
22
import { IOptions } from "./ioptions";
3-
export declare function parseTsConfig(context: IContext, pluginOptions: IOptions): {
3+
export declare function parseTsConfig(context: RollupContext, pluginOptions: IOptions): {
44
parsedTsConfig: import("typescript").ParsedCommandLine;
55
fileName: string | undefined;
66
};

dist/parse-tsconfig.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/print-diagnostics.d.ts

-4
This file was deleted.

dist/print-diagnostics.d.ts.map

-1
This file was deleted.

0 commit comments

Comments
 (0)