git.schokokeks.org
Repositories
Help
Report an Issue
fs-words.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
faf7e12
Branches
Tags
develop-client_server
master
typescript
fs-words.git
server
source
helpers
storage.ts
[mov] server
Christian Fraß
commited
faf7e12
at 2021-03-08 23:05:42
storage.ts
Blame
History
Raw
namespace helpers { /** */ export type storage<type_key, type_value> = { create : (value : type_value)=>Promise<type_key>; update : (key : type_key, value : type_value)=>Promise<void>; delete : (key : type_key)=>Promise<void>; read : (key : type_key)=>Promise<type_value>; }; /** */ export type storage_sqltable = ( storage<int, type_row> & { purge : (column : string, value : any)=>Promise<void>; take : (column : string, value : any)=>Promise<Array<type_row>>; } ); }