chore: make the second argument of module post processor optional

This commit is contained in:
LeoYuan 袁力皓 2023-03-10 10:37:18 +08:00
parent a8ab86ebb5
commit 8474644e99

View File

@ -197,7 +197,7 @@ export type ProjectPostProcessor = (
export type PostProcessorFactory<T> = (config?: T) => PostProcessor;
/** 模块级别的后置处理器 */
export type PostProcessor = (content: string, fileType: string, name: string) => string;
export type PostProcessor = (content: string, fileType: string, name?: string) => string;
// TODO: temp interface, need modify
export interface IPluginOptions {