git.schokokeks.org
Repositories
Help
Report an Issue
fs-words.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
9815a42
Branches
Tags
develop-client_server
master
typescript
fs-words.git
source
helpers
storage.ts
[add] typescript logic
Christian Fraß
commited
9815a42
at 2021-03-03 00:27:18
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>>; } ); }