add a command command

This commit is contained in:
Philipp Kühn
2020-11-17 14:38:42 +01:00
parent 8d516993a1
commit c71851e14c
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
import { Command } from '../types'
export default (fn: (props: Parameters<Command>[0]) => boolean): Command => props => {
return fn(props)
}