From 187897a1f055cb02296d9ad6e1c406a7feb4ecb2 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Sat, 12 Oct 2019 20:59:25 +0530 Subject: [PATCH] Add hyper types --- lib/hyper.d.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib/hyper.d.ts diff --git a/lib/hyper.d.ts b/lib/hyper.d.ts new file mode 100644 index 00000000..31d332b5 --- /dev/null +++ b/lib/hyper.d.ts @@ -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; + +export type ITermState = { + termGroups: ITermGroups; + activeSessions: Record; + activeRootGroup: string | null; +};