Skip to content

Commit

Permalink
fix: Doc for query.ts (#9521)
Browse files Browse the repository at this point in the history
doc: Type in docs for query.ts

Previously it was suggested that one of the parameters is `urlParamsSetting` (singular), but [looking at this line](https://github.com/emberjs/data/blob/eb9e8a9213d1dc74a132c36646929974d7acc742/packages/rest/src/-private/builders/query.ts#L93) (and experimenting with my code) I concluded that it should be `urlParamsSettings` (plural).
  • Loading branch information
MichalBryxi authored Aug 14, 2024
1 parent eb9e8a9 commit 7ea1bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rest/src/-private/builders/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { copyForwardUrlOptions, extractCacheOptions } from './-utils';
* - `backgroundReload` - Whether to reload the request if it is already in the store, but to also resolve the
* promise with the cached value, not supplying this option will delegate to the store's CachePolicy,
* defaulting to `false` if none is configured.
* - `urlParamsSetting` - an object containing options for how to serialize the query params (see `buildQueryParams`)
* - `urlParamsSettings` - an object containing options for how to serialize the query params (see `buildQueryParams`)
*
* ```ts
* import { query } from '@ember-data/rest/request';
Expand Down

0 comments on commit 7ea1bcc

Please sign in to comment.