2023-01-13 05:40:33 +01:00
|
|
|
import type { KVs } from "../core.js";
|
|
|
|
import Chart from "../core.js";
|
|
|
|
import { name, schema } from "./entities/test-intersection.js";
|
2022-02-08 19:46:58 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* For testing
|
|
|
|
*/
|
2023-01-13 05:54:33 +01:00
|
|
|
|
2022-02-08 19:46:58 +01:00
|
|
|
export default class TestIntersectionChart extends Chart<typeof schema> {
|
|
|
|
constructor() {
|
|
|
|
super(name, schema);
|
|
|
|
}
|
|
|
|
|
2022-02-10 09:45:12 +01:00
|
|
|
protected async tickMajor(): Promise<Partial<KVs<typeof schema>>> {
|
|
|
|
return {};
|
|
|
|
}
|
|
|
|
|
|
|
|
protected async tickMinor(): Promise<Partial<KVs<typeof schema>>> {
|
2022-02-08 19:46:58 +01:00
|
|
|
return {};
|
|
|
|
}
|
|
|
|
|
|
|
|
public async addA(key: string): Promise<void> {
|
|
|
|
await this.commit({
|
|
|
|
a: [key],
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
public async addB(key: string): Promise<void> {
|
|
|
|
await this.commit({
|
|
|
|
b: [key],
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|