Skip to content

Commit

Permalink
fix override type
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Jul 3, 2024
1 parent 19bdf28 commit d96b7aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/base/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export type WriteFileTemplate<Generator = CoreGenerator, DataType = any> =
binary?: boolean;
/** ejs options. Refer to https://ejs.co/#docs */
options?: Record<string, object>;
override?: (this: Generator, data: DataType) => boolean;
override?: boolean | ((this: Generator, data: DataType) => boolean);
};

export type WriteFileBlock<Generator = CoreGenerator, DataType = any> = {
Expand Down

0 comments on commit d96b7aa

Please sign in to comment.