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.
24 lines (23 loc) • 913 B
TypeScript
import type { ResolvedCliAsset } from '../utils/config/cli-options';
/**
* What kind of file changes we differentiate between, for the purposes of triggering
* different builds
*/
export declare enum FileChangeType {
All = 0,
IndexHtml = 1,
Asset = 2,
Default = 3
}
/**
* Determine what category of file was changed for the purpose of triggering
* different builds.
*/
export declare function fileChangeType(changedFile: string, opts?: {
root?: string;
assets?: ResolvedCliAsset[];
}): FileChangeType;
type Abortable = (signal: AbortSignal, ...args: any) => any;
type WrapAbortable<AbortableGeneric extends Abortable> = AbortableGeneric extends (signal: AbortSignal, ...args: infer Args) => infer Return ? (...args: Args) => Return : never;
export declare const wrapAbortable: <AbortableGeneric extends Abortable>(fn: AbortableGeneric) => WrapAbortable<AbortableGeneric>;
export {};