import autobind from 'autobind-decorator'; import Chart, { KVs } from '../core'; import { name, schema } from './entities/test-intersection'; /** * For testing */ // eslint-disable-next-line import/no-default-export export default class TestIntersectionChart extends Chart { constructor() { super(name, schema); } @autobind protected async queryCurrentState(): Promise>> { return {}; } @autobind public async addA(key: string): Promise { await this.commit({ a: [key], }); } @autobind public async addB(key: string): Promise { await this.commit({ b: [key], }); } }