dt-app
Version:
The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.
34 lines (33 loc) • 1 kB
TypeScript
import type { BuildType } from '../type-checker';
export type TsWorkerMessage = {
type: 'initialized';
payload: BuildType;
} | {
type: 'type-error';
payload: string;
} | {
type: 'send-biz-event';
payload?: object;
} | {
type: 'entrypoints-changed';
payload: {
buildType: BuildType;
entrypoints: string[];
event: 'add' | 'unlink';
};
};
export type TsCheckerWorkerData = {
/** App root */
appRoot: string;
/** Relative path to the tsconfig.json from the app root */
tsconfigFullPath: string;
buildType: BuildType;
/** Array of all the entrypoints. */
entrypoints: string[];
/** The glob that is used to watch for filesystem actions add and unlink */
glob: string;
};
export declare class AbortError extends Error {
}
/** Creates a TypeScript worker that handles typechecking and is watching for new entrypoints. */
export declare function createTypeScriptWorkerThread(options: TsCheckerWorkerData): void;