add a command command
This commit is contained in:
5
packages/core/src/commands/command.ts
Normal file
5
packages/core/src/commands/command.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Command } from '../types'
|
||||
|
||||
export default (fn: (props: Parameters<Command>[0]) => boolean): Command => props => {
|
||||
return fn(props)
|
||||
}
|
||||
Reference in New Issue
Block a user