mirror of
https://github.com/flarum/framework.git
synced 2025-03-15 00:05:12 +08:00
params
arguments for id-based app.store.find
should be optional
This commit is contained in:
parent
306b3a9e8b
commit
a2c8407dd4
@ -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[]>(
|
||||
|
Loading…
x
Reference in New Issue
Block a user