Skip to content

Commit

Permalink
fix: 修正 hook 產生錯誤的 template
Browse files Browse the repository at this point in the history
  • Loading branch information
amowu committed Feb 14, 2022
1 parent c1ba592 commit bbb056f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/factory/HookFactory.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import IGenerator from "../generator/IGenerator";
import Validator from "../validator/Validator";
import HOCGenerator from "../generator/HOCGenerator";
import IFactory from "./IFactory";
import HOCValidator from "../validator/HOCValidator";
import HookGenerator from "../generator/HookGenerator";
import HookValidator from "../validator/HookValidator";

class HookFactory implements IFactory {
public createValidator(): Validator {
return new HOCValidator();
return new HookValidator();
}
public createGenerator(): IGenerator {
return new HOCGenerator();
return new HookGenerator();
}
}

Expand Down

0 comments on commit bbb056f

Please sign in to comment.