feat: create stage

This commit is contained in:
wancat committed 2024-03-08 00:38:49 +08:00
1 parent 65ad72223b
commit 77fe2d37b3
11 files changed
+67 -18

No files matched your search

+2 -2
View File
@@ -1,10 +1,10 @@
import { Command } from '../types.js'
import { ICommand } from '../types.js'
import { Matcher } from './Matcher.js'
export class NotMatcher implements Matcher {
constructor(private condition: Matcher) {}
match(command: Command): boolean {
match(command: ICommand): boolean {
return !this.condition.match(command)
}
}