restructure commands
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import { Command } from '../types'
|
||||
|
||||
export default (fn: (props: Parameters<Command>[0]) => boolean): Command => props => {
|
||||
/**
|
||||
* Define a command inline.
|
||||
*/
|
||||
export const command = (fn: (props: Parameters<Command>[0]) => boolean): Command => props => {
|
||||
return fn(props)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user