Add hyper types

This commit is contained in:
Labhansh Agrawal 2019-10-12 20:59:25 +05:30 committed by Benjamin Staneck
parent a817fcde33
commit 187897a1f0

22
lib/hyper.d.ts vendored Normal file
View file

@ -0,0 +1,22 @@
declare global {
interface Window {
__rpcId: string;
}
}
export type ITermGroup = {
uid: string | null;
sessionUid: string | null;
parentUid: string | null;
direction: string | null;
sizes: number[] | null;
children: string[];
};
export type ITermGroups = Record<string, ITermGroup>;
export type ITermState = {
termGroups: ITermGroups;
activeSessions: Record<string, string>;
activeRootGroup: string | null;
};