Browse Source

feat(gui-v2): make token and user readonly

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
pull/2716/head
Braks 2 years ago committed by Pranav C
parent
commit
a99456900b
  1. 4
      packages/nc-gui-v2/lib/types.ts

4
packages/nc-gui-v2/lib/types.ts

@ -25,4 +25,6 @@ export interface Actions {
signIn: (token: string) => void signIn: (token: string) => void
} }
export type GlobalState = Getters & Actions & ToRefs<State> export type ReadonlyState = Readonly<Pick<State, 'token' | 'user'>> & Omit<State, 'token' | 'user'>
export type GlobalState = Getters & Actions & ToRefs<ReadonlyState>

Loading…
Cancel
Save