2022-01-25 04:25:34 +00:00
|
|
|
import { shallowReactive } from "vue";
|
2021-09-05 23:53:04 +00:00
|
|
|
|
2022-01-14 04:25:47 +00:00
|
|
|
export interface Transient {
|
|
|
|
lastTenTicks: number[];
|
|
|
|
hasNaN: boolean;
|
|
|
|
NaNPath?: string[];
|
|
|
|
NaNReceiver?: Record<string, unknown>;
|
|
|
|
}
|
|
|
|
|
2022-07-10 03:09:25 +00:00
|
|
|
declare global {
|
|
|
|
/** Augment the window object so the transient state can be accessed from the console */
|
|
|
|
interface Window {
|
|
|
|
state: Transient;
|
|
|
|
}
|
|
|
|
}
|
2022-01-25 04:25:34 +00:00
|
|
|
export default window.state = shallowReactive<Transient>({
|
2021-09-05 23:53:04 +00:00
|
|
|
lastTenTicks: [],
|
|
|
|
hasNaN: false,
|
2022-01-14 04:25:47 +00:00
|
|
|
NaNPath: []
|
2021-09-05 23:53:04 +00:00
|
|
|
});
|