import autobind from 'autobind-decorator'; import Chart, { KVs } from '../core'; import { name, schema } from './entities/test-unique'; /** * For testing */ // eslint-disable-next-line import/no-default-export export default class TestUniqueChart extends Chart { constructor() { super(name, schema); } @autobind protected async tickMajor(): Promise>> { return {}; } @autobind protected async tickMinor(): Promise>> { return {}; } @autobind public async uniqueIncrement(key: string): Promise { await this.commit({ foo: [key], }); } }