UNPKG

@r/api-client

Version:

node and browser reddit api library

24 lines (18 loc) 367 B
import Base from './base'; export default class Save extends Base { _type = 'Save'; validators() { const id = Base.validators.id; const category = this.categoryValidator; return { id, category, }; } categoryValidator(category) { if (!category) { return true; } return Base.validators.string(category); } }