Migrace na OpenAPI - TypeScript typy
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import { ClientData } from "../../../types";
|
||||
|
||||
/**
|
||||
* Interface pro úložiště dat.
|
||||
*
|
||||
@@ -17,7 +15,7 @@ export interface StorageInterface {
|
||||
* Vrátí veškerá data pro předaný klíč.
|
||||
* @param key klíč, pro který vrátit data (typicky datum)
|
||||
*/
|
||||
getData<Type>(key: string): Promise<Type>;
|
||||
getData<Type>(key: string): Promise<Type | undefined>;
|
||||
|
||||
/**
|
||||
* Uloží data pod předaný klíč.
|
||||
|
||||
Reference in New Issue
Block a user