mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Add hyper types
This commit is contained in:
parent
a817fcde33
commit
187897a1f0
1 changed files with 22 additions and 0 deletions
22
lib/hyper.d.ts
vendored
Normal file
22
lib/hyper.d.ts
vendored
Normal 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;
|
||||
};
|
||||
Loading…
Reference in a new issue