Skip to content

Commit 8474644

Browse files
committed
chore: make the second argument of module post processor optional
1 parent a8ab86e commit 8474644

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • modules/code-generator/src/types

modules/code-generator/src/types/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export type ProjectPostProcessor = (
197197
export type PostProcessorFactory<T> = (config?: T) => PostProcessor;
198198

199199
/** 模块级别的后置处理器 */
200-
export type PostProcessor = (content: string, fileType: string, name: string) => string;
200+
export type PostProcessor = (content: string, fileType: string, name?: string) => string;
201201

202202
// TODO: temp interface, need modify
203203
export interface IPluginOptions {

0 commit comments

Comments
 (0)