From 8474644e9991c5d4c2c837c7eade2684d857d186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LeoYuan=20=E8=A2=81=E5=8A=9B=E7=9A=93?= Date: Fri, 10 Mar 2023 10:37:18 +0800 Subject: [PATCH] chore: make the second argument of module post processor optional --- modules/code-generator/src/types/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/code-generator/src/types/core.ts b/modules/code-generator/src/types/core.ts index 1a85db965..33abad1d1 100644 --- a/modules/code-generator/src/types/core.ts +++ b/modules/code-generator/src/types/core.ts @@ -197,7 +197,7 @@ export type ProjectPostProcessor = ( export type PostProcessorFactory = (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 {