diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-11-28 13:25:47 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-12-09 23:08:59 +0900 |
commit | 809bdb11f3d213254c098411755631b1264c52f0 (patch) | |
tree | df55fac613441001f357a047a9a17472f8ec9ede /src/content/operators/OperatorFactoryChain.ts | |
parent | fd2055e2702251c856f60214f150c78d558dcbf7 (diff) |
Make operators as a strategy pattern
Diffstat (limited to 'src/content/operators/OperatorFactoryChain.ts')
-rw-r--r-- | src/content/operators/OperatorFactoryChain.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/content/operators/OperatorFactoryChain.ts b/src/content/operators/OperatorFactoryChain.ts new file mode 100644 index 0000000..98dedb5 --- /dev/null +++ b/src/content/operators/OperatorFactoryChain.ts @@ -0,0 +1,6 @@ +import * as operations from "../../shared/operations"; +import Operator from "./Operator"; + +export default interface OperatorFactoryChain { + create(op: operations.Operation, repeat: number): Operator | null; +} |