Skip to content

Commit f6d9438

Browse files
authored
Merge pull request #97 from honey32/develop
release v1.3.0
2 parents 3066c7d + 23ef5eb commit f6d9438

File tree

4 files changed

+92
-92
lines changed

4 files changed

+92
-92
lines changed

package-lock.json

Lines changed: 87 additions & 87 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-query-utils",
3-
"version": "1.2.1",
3+
"version": "1.3.0",
44
"source": "src/index.ts",
55
"main": "dist/main.js",
66
"module": "dist/module.js",

src/mutators/resetQuery.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { queryMutation } from "./_internal/queryMutation";
1+
import { QueryMutation, queryMutation } from "./_internal/queryMutation";
22

33
/**
44
* Resets the query (into empty object).
@@ -33,7 +33,7 @@ export const resetQuery = (
3333
| (string | undefined | null | boolean | number)[]
3434
| undefined;
3535
} = {},
36-
) => {
36+
): QueryMutation => {
3737
const ignoredKeys = (() => {
3838
const { ignore } = options;
3939
if (!ignore) return [];

src/mutators/setQueryParams.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { queryMutation } from "./_internal/queryMutation";
1+
import { QueryMutation, queryMutation } from "./_internal/queryMutation";
22

33
/**
44
* Sets values of query parameters.
@@ -36,7 +36,7 @@ import { queryMutation } from "./_internal/queryMutation";
3636
*/
3737
export const setQueryParams = (
3838
params: Record<string, string | string[] | undefined | null | 0 | false>,
39-
) => {
39+
): QueryMutation => {
4040
return queryMutation((query) =>
4141
Object.entries(params).reduce(
4242
(acc, [key, value]) => ({

0 commit comments

Comments
 (0)