UNPKG

@r/api-client

Version:

node and browser reddit api library

20 lines (14 loc) 286 B
import Base from './base'; class Vote extends Base { _type = 'Vote'; validators () { const direction = this.directionValidator.bind(this); return { direction, }; } directionValidator (v) { return ([-1,0,1].indexOf(v) > -1); } } export default Vote;