@forge/bundler
6.2.1-experimental-04cc2b96.2.2-next.0
out/types.d.ts~
out/types.d.tsModified+8−8
Index: package/out/types.d.ts
===================================================================
--- package/out/types.d.ts
+++ package/out/types.d.ts
@@ -1,7 +1,7 @@
import { I18nResourceBundle, UserError } from '@forge/cli-shared';
import { Translations } from '@forge/manifest';
-export type BundlerMetadata = {
+export declare type BundlerMetadata = {
modules?: string[];
jsFiles: number;
tsFiles: number;
esm: boolean;
@@ -15,35 +15,35 @@
export interface BundlerOutput {
outputDir: string;
metadata?: BundlerMetadata;
}
-export type BundlerWatchMode = 'watch' | 'debug';
-export type EntryPoint = {
+export declare type BundlerWatchMode = 'watch' | 'debug';
+export declare type EntryPoint = {
name: string;
path: string;
isMultiEntry?: boolean;
};
-export type BundlerArgs = {
+export declare type BundlerArgs = {
appDirectory: string;
entryPoints: EntryPoint[];
watchMode?: BundlerWatchMode;
i18nConfig?: Translations;
i18nResourceBundle?: I18nResourceBundle;
};
-export type BundlerWatchArgs = BundlerArgs & Required<Pick<BundlerArgs, 'watchMode'>> & {
+export declare type BundlerWatchArgs = BundlerArgs & Required<Pick<BundlerArgs, 'watchMode'>> & {
successMessage: string;
};
-export type BundlerWatch = {
+export declare type BundlerWatch = {
onBuildWillStart: () => Promise<void>;
onBuildFinished: ((err: null, result: BundlerOutput) => Promise<void>) & ((err: Error) => Promise<void>);
};
export interface WatcherMonitor {
stop(): void;
}
-export type BundlerWatchOutput = WatcherMonitor & {
+export declare type BundlerWatchOutput = WatcherMonitor & {
result: BundlerOutput;
};
-export type Bundler = {
+export declare type Bundler = {
bundle(args: BundlerArgs): Promise<BundlerOutput>;
watch(args: BundlerWatchArgs, watch: BundlerWatch): Promise<BundlerWatchOutput>;
};
export declare class BundlerError extends UserError {