mirror of
https://github.com/strapi/strapi.git
synced 2025-06-27 00:41:25 +00:00
fix: improve type signature core-store getter (#23593)
This commit is contained in:
parent
c72b48da73
commit
cef4ff5f13
@ -48,11 +48,11 @@ type Params = SetParams & GetParams;
|
||||
|
||||
interface CoreStore {
|
||||
(defaultParams: Partial<Params>): {
|
||||
get(params: Partial<GetParams>): Promise<unknown>;
|
||||
get<T = unknown>(params: Partial<GetParams>): Promise<T>;
|
||||
set(params: Partial<SetParams>): Promise<void>;
|
||||
delete(params: Partial<GetParams>): Promise<void>;
|
||||
};
|
||||
get(params: GetParams): Promise<unknown>;
|
||||
get<T = unknown>(params: GetParams): Promise<T>;
|
||||
set(params: SetParams): Promise<void>;
|
||||
delete(params: GetParams): Promise<void>;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user