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.
19 lines (18 loc) • 760 B
TypeScript
import type { AppIcon } from '../../interfaces';
import type { ResolvedCliOptions } from '../config/cli-options';
export type ProvideIconOptions = Pick<ResolvedCliOptions, 'root' | 'app' | 'icon'> & {
/** Don't actually generate an icon or read the content of the icon */
dryRun?: boolean;
};
export type AppIconDetails = AppIcon & {
data: Buffer | string;
type: 'image/svg+xml' | 'image/png';
extension: '.svg' | '.png';
iconSrcPath?: string;
};
/**
* Provides icon information such as content, mime type and path.
* If no icon is present, it will be generated using the appId.
* This function is handy to serve the icon via dev-server.
*/
export declare function provideIcon(options: ProvideIconOptions): Promise<AppIconDetails>;