params arguments for id-based app.store.find should be optional

This commit is contained in:
Alexander Skvortsov 2021-12-12 15:39:28 -05:00
parent a8c56122fd
commit f469bcfcd7

View File

@ -147,13 +147,13 @@ export default class Store {
async find<M extends Model>(
type: string,
id: string,
params: ApiQueryParamsSingle,
params?: ApiQueryParamsSingle,
options?: ApiQueryRequestOptions<ApiPayloadSingle>
): Promise<ApiResponseSingle<M>>;
async find<Ms extends Model[]>(
type: string,
ids: string[],
params: ApiQueryParamsPlural,
params?: ApiQueryParamsPlural,
options?: ApiQueryRequestOptions<ApiPayloadPlural>
): Promise<ApiResponsePlural<Ms[number]>>;
async find<M extends Model | Model[]>(