@teambit/bundler
Version:
31 lines (30 loc) • 1.64 kB
TypeScript
import type { GraphqlMain } from '@teambit/graphql';
import { BitBaseEvent } from '@teambit/pubsub';
import type { ComponentServer } from '../component-server';
import type { ExecutionContext } from '@teambit/envs';
export declare const ComponentServerStartedEvent = "ComponentServerStartedEvent";
declare class ComponentsServerStartedEventData {
readonly componentsServer: ComponentServer;
readonly context: ExecutionContext;
readonly hostname?: string | undefined;
readonly port?: number | undefined;
constructor(componentsServer: ComponentServer, context: ExecutionContext, hostname?: string | undefined, port?: number | undefined);
}
export declare class ComponentsServerStartedEvent extends BitBaseEvent<ComponentsServerStartedEventData> {
readonly timestamp: number;
readonly componentsServer: ComponentServer;
readonly context: ExecutionContext;
readonly hostname?: string | undefined;
readonly port?: number | undefined;
static readonly TYPE = "components-server-started";
constructor(timestamp: number, componentsServer: ComponentServer, context: ExecutionContext, hostname?: string | undefined, port?: number | undefined);
}
export declare class NewDevServersCreatedEvent extends BitBaseEvent<ComponentsServerStartedEventData[]> {
readonly componentsServers: ComponentServer[];
readonly timestamp: number;
readonly graphql: GraphqlMain;
readonly restartIfRunning: boolean;
static readonly TYPE = "new-dev-servers-created";
constructor(componentsServers: ComponentServer[], timestamp: number, graphql: GraphqlMain, restartIfRunning?: boolean);
}
export {};