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
Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git]
/
packages
/
shared
/
lib
/
interfaces
/
Model.ts
blob
ed4d7b3ac0d870e5cf807edc7875c4bfe39ee715
1
import type { Api } from './Api';
2
3
export interface Model<T> {
4
key: string;
5
get: (api: Api) => T;
6
update: (oldModel: T, newModel: Partial<T>) => T;
7
}