snoode
Version:
node and browser reddit api library
21 lines (15 loc) • 333 B
JavaScript
import Base from './base';
class Account extends Base {
_type = 'Account';
validators () {
const thingId = this.thingIdValidator.bind(this);
return {
thingId,
};
}
thingIdValidator () {
const thingId = this.get('thingId');
return Base.validators.thingId(thingId);
}
}
export default Account;