mirror of
https://github.com/flarum/core.git
synced 2025-07-17 14:51:19 +02:00
params
arguments for id-based app.store.find
should be optional
This commit is contained in:
@@ -147,13 +147,13 @@ export default class Store {
|
|||||||
async find<M extends Model>(
|
async find<M extends Model>(
|
||||||
type: string,
|
type: string,
|
||||||
id: string,
|
id: string,
|
||||||
params: ApiQueryParamsSingle,
|
params?: ApiQueryParamsSingle,
|
||||||
options?: ApiQueryRequestOptions<ApiPayloadSingle>
|
options?: ApiQueryRequestOptions<ApiPayloadSingle>
|
||||||
): Promise<ApiResponseSingle<M>>;
|
): Promise<ApiResponseSingle<M>>;
|
||||||
async find<Ms extends Model[]>(
|
async find<Ms extends Model[]>(
|
||||||
type: string,
|
type: string,
|
||||||
ids: string[],
|
ids: string[],
|
||||||
params: ApiQueryParamsPlural,
|
params?: ApiQueryParamsPlural,
|
||||||
options?: ApiQueryRequestOptions<ApiPayloadPlural>
|
options?: ApiQueryRequestOptions<ApiPayloadPlural>
|
||||||
): Promise<ApiResponsePlural<Ms[number]>>;
|
): Promise<ApiResponsePlural<Ms[number]>>;
|
||||||
async find<M extends Model | Model[]>(
|
async find<M extends Model | Model[]>(
|
||||||
|
Reference in New Issue
Block a user