Skip to content

Commit

Permalink
Revert misguided lint-induced changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Jan 28, 2025
1 parent 9bce62b commit 17cd2a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/active-record/src/-private/builders/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ import { copyForwardUrlOptions, extractCacheOptions } from './-utils';
*/
export function query<T>(
type: TypeFromInstance<T>,
// eslint-disable-next-line @typescript-eslint/no-shadow
query?: QueryParamsSource,
options?: ConstrainedRequestOptions
): QueryRequestOptions<T, CollectionResourceDataDocument<T>>;
export function query(
type: string,
// eslint-disable-next-line @typescript-eslint/no-shadow
query?: QueryParamsSource,
options?: ConstrainedRequestOptions
): QueryRequestOptions;
Expand Down
6 changes: 4 additions & 2 deletions packages/json-api/src/-private/builders/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,13 @@ import { ACCEPT_HEADER_VALUE, copyForwardUrlOptions, extractCacheOptions } from
*/
export function query<T extends TypedRecordInstance>(
type: TypeFromInstance<T>,
// eslint-disable-next-line @typescript-eslint/no-shadow
query?: QueryParamsSource<T>,
options?: ConstrainedRequestOptions
): QueryRequestOptions<T, CollectionResourceDataDocument<T>>;
export function query(
type: string,
// eslint-disable-next-line @typescript-eslint/no-shadow
query?: QueryParamsSource,
options?: ConstrainedRequestOptions
): QueryRequestOptions;
Expand Down Expand Up @@ -157,13 +159,13 @@ export function query(
*/
export function postQuery<T>(
type: TypeFromInstance<T>,

// eslint-disable-next-line @typescript-eslint/no-shadow
query?: QueryParamsSource,
options?: ConstrainedRequestOptions
): PostQueryRequestOptions<T, CollectionResourceDataDocument<T>>;
export function postQuery(
type: string,

// eslint-disable-next-line @typescript-eslint/no-shadow
query?: QueryParamsSource,
options?: ConstrainedRequestOptions
): PostQueryRequestOptions;
Expand Down
2 changes: 2 additions & 0 deletions packages/rest/src/-private/builders/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ import { copyForwardUrlOptions, extractCacheOptions } from './-utils';
*/
export function query<T>(
type: TypeFromInstance<T>,
// eslint-disable-next-line @typescript-eslint/no-shadow
query?: QueryParamsSource,
options?: ConstrainedRequestOptions
): QueryRequestOptions<T, CollectionResourceDataDocument<T>>;
export function query(
type: string,
// eslint-disable-next-line @typescript-eslint/no-shadow
query?: QueryParamsSource,
options?: ConstrainedRequestOptions
): QueryRequestOptions;
Expand Down

0 comments on commit 17cd2a9

Please sign in to comment.