Skip to content

Commit

Permalink
fix: fix type for registerGenerator (#6453)
Browse files Browse the repository at this point in the history
  • Loading branch information
thonatos committed Apr 21, 2021
1 parent 4dce508 commit 3cee061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export interface IApi extends PluginAPI {
writeTmpFile: {
(args: { path: string; content: string; skipTSCheck?: boolean }): void;
};
registerGenerator: { (args: { key: string; Generator: Generator }): void };
registerGenerator: { (args: { key: string; Generator: typeof Generator }): void };
babelRegister: typeof Service.prototype.babelRegister;
getRoutes: () => Promise<IRoute[]>;
hasPlugins: typeof Service.prototype.hasPlugins;
Expand Down

0 comments on commit 3cee061

Please sign in to comment.