mono/packages/tasks/src/index.ts
2026-01-29 15:31:09 +01:00

18 lines
686 B
TypeScript

/**
* Callback prototype signature when content has been compiled
* @param {string} src The path of the source file
* @param {string} dst The path of the destination file
* @param {string} content The content
* @returns {boolean}
*/
export type OnCompiled = (src: string, dst: string, content: string) => Promise<string>
/**
* Callback prototype signature when 'compile' task is finish
* @param {string} src The path of the source file
* @param {string} dst The path of the destination file
* @param {string} content The content
* @returns {boolean}
*/
export type OnCompileDone = (src: string, dst: string, options: any, content: string) => Promise<void>