repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Use same lock values as mobile clients
[ProtonMail-WebClient.git]
/
packages
/
account
/
test
/
index.ts
blob
e03b4fadc6a5eef395048341f18c541dcc19b61b
1
import type { ModelState } from '../interface';
2
3
export const getModelState = <T>(value: T | undefined, error = undefined): ModelState<T> => {
4
return {
5
value,
6
error,
7
meta: {
8
fetchedAt: Date.now(),
9
fetchedEphemeral: true,
10
},
11
};
12
};