| 34 | * `siteDir` and `filePath` are **absolute** paths. |
| 35 | */ |
| 36 | export interface TaskHandler<GlobalInitializationResult = unknown> { |
| 37 | globalInitialize?(siteDir: string): Promise<GlobalInitializationResult>; |
| 38 | initialize?(globalInitializationResult: GlobalInitializationResult, siteDir: string): Promise<void>; |
| 39 | process(document: HTMLElement, filePath: string): Promise<void>; |
| 40 | finalize?(): Promise<void>; |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Load task handlers from corresponding directories with dynamic import. |
no outgoing calls
no test coverage detected