@rollup/browser 4.19.2 → 4.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/rollup.browser.d.ts
CHANGED
|
@@ -161,6 +161,7 @@ export interface EmittedAsset {
|
|
|
161
161
|
fileName?: string;
|
|
162
162
|
name?: string;
|
|
163
163
|
needsCodeReference?: boolean;
|
|
164
|
+
originalFileName?: string | null;
|
|
164
165
|
source?: string | Uint8Array;
|
|
165
166
|
type: 'asset';
|
|
166
167
|
}
|
|
@@ -226,6 +227,7 @@ export type ParseAst = (
|
|
|
226
227
|
|
|
227
228
|
// declare AbortSignal here for environments without DOM lib or @types/node
|
|
228
229
|
declare global {
|
|
230
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
229
231
|
interface AbortSignal {}
|
|
230
232
|
}
|
|
231
233
|
|
|
@@ -394,7 +396,6 @@ export type WatchChangeHook = (
|
|
|
394
396
|
* const myPlugin: PluginImpl<Options> = (options = {}) => { ... }
|
|
395
397
|
* ```
|
|
396
398
|
*/
|
|
397
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
398
399
|
export type PluginImpl<O extends object = object, A = any> = (options?: O) => Plugin<A>;
|
|
399
400
|
|
|
400
401
|
export interface OutputBundle {
|
|
@@ -504,13 +505,13 @@ type MakeAsync<Function_> = Function_ extends (
|
|
|
504
505
|
? (this: This, ...parameters: Arguments) => Return | Promise<Return>
|
|
505
506
|
: never;
|
|
506
507
|
|
|
507
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
508
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
508
509
|
type ObjectHook<T, O = {}> = T | ({ handler: T; order?: 'pre' | 'post' | null } & O);
|
|
509
510
|
|
|
510
511
|
export type PluginHooks = {
|
|
511
512
|
[K in keyof FunctionPluginHooks]: ObjectHook<
|
|
512
513
|
K extends AsyncPluginHooks ? MakeAsync<FunctionPluginHooks[K]> : FunctionPluginHooks[K],
|
|
513
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
514
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
514
515
|
K extends ParallelPluginHooks ? { sequential?: boolean } : {}
|
|
515
516
|
>;
|
|
516
517
|
};
|
|
@@ -755,6 +756,7 @@ export interface OutputOptions {
|
|
|
755
756
|
strict?: boolean;
|
|
756
757
|
systemNullSetters?: boolean;
|
|
757
758
|
validate?: boolean;
|
|
759
|
+
virtualDirname?: string;
|
|
758
760
|
}
|
|
759
761
|
|
|
760
762
|
export interface NormalizedOutputOptions {
|
|
@@ -808,6 +810,7 @@ export interface NormalizedOutputOptions {
|
|
|
808
810
|
strict: boolean;
|
|
809
811
|
systemNullSetters: boolean;
|
|
810
812
|
validate: boolean;
|
|
813
|
+
virtualDirname: string;
|
|
811
814
|
}
|
|
812
815
|
|
|
813
816
|
export type WarningHandlerWithDefault = (
|
|
@@ -821,6 +824,7 @@ export interface SerializedTimings {
|
|
|
821
824
|
|
|
822
825
|
export interface PreRenderedAsset {
|
|
823
826
|
name: string | undefined;
|
|
827
|
+
originalFileName: string | null;
|
|
824
828
|
source: string | Uint8Array;
|
|
825
829
|
type: 'asset';
|
|
826
830
|
}
|