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.

13 lines (12 loc) 616 B
import type { ResolvedCliOptions } from '../utils/config/cli-options'; import type { FastifyInstance } from 'fastify'; export type BeforeBuildHook = 'before-build'; export type BeforeServeHook = 'before-serve'; export type Hook = BeforeBuildHook | BeforeServeHook; export type NamedCallBackHook<T> = { callBack: T; name: string; }; export type BeforeBuildCallback = (appOptions: ResolvedCliOptions) => void | Promise<void>; export type BeforeServeCallBack = (appOptions: ResolvedCliOptions, fastify: FastifyInstance) => void | Promise<void>; export type CallBack = BeforeBuildCallback | BeforeServeCallBack;