diff --git a/generators/base/api.d.ts b/generators/base/api.d.ts index 5e861c0ad8f0..3c164ea41c24 100644 --- a/generators/base/api.d.ts +++ b/generators/base/api.d.ts @@ -142,7 +142,7 @@ export type WriteFileTemplate = binary?: boolean; /** ejs options. Refer to https://ejs.co/#docs */ options?: Record; - override?: (this: Generator, data: DataType) => boolean; + override?: boolean | ((this: Generator, data: DataType) => boolean); }; export type WriteFileBlock = {