From a99456900bd620c16f3b9179e0989f79d8cf066e Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Fri, 8 Jul 2022 11:02:17 +0200 Subject: [PATCH] feat(gui-v2): make token and user readonly Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com> --- packages/nc-gui-v2/lib/types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/lib/types.ts b/packages/nc-gui-v2/lib/types.ts index dd8a1ce777..1f947f68be 100644 --- a/packages/nc-gui-v2/lib/types.ts +++ b/packages/nc-gui-v2/lib/types.ts @@ -25,4 +25,6 @@ export interface Actions { signIn: (token: string) => void } -export type GlobalState = Getters & Actions & ToRefs +export type ReadonlyState = Readonly> & Omit + +export type GlobalState = Getters & Actions & ToRefs