UNPKG

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.06 kB
interface ComponentEntryType { instances: number; styled?: number; props: Record<string, PropEntryType>; } interface PropEntryType { usages?: number; values?: Record<string, number>; } /** * Sends designs system usage as a bizevent * @param appId * @param root */ export declare function sendDesignSystemUsage(appId: string, appVersion: string, root: string, command: string): Promise<void>; /** The report collected by statically analyzing the source files. */ export type AppDevUsageReport = { appId: string; appVersion: string; appCommand: string; packages: Record<string, string>; components: Record<string, ComponentEntryType>; icons: Record<string, number>; incomplete?: boolean; }; /** * Function that generates the component usage report. * @param appId * @param cwd current working directory * @returns usage report for dynatrace packages */ export declare function createAppDevUsageReport(appId: string, appVersion: string, cwd: string, command: string): Promise<AppDevUsageReport>; export {};