Skip to content

Commit

Permalink
fix(types): v2 (#626)
Browse files Browse the repository at this point in the history
* enable types, update simpleQuery

* update MutationState

* stricter query type

Co-authored-by: Michaël De Boey <[email protected]>

* verify imports

* verify import 2

* update fetchMore

* move ready condition to enabled

* update MutateOptions

* update config

* fix QueryResulltBase

* remove queryKey function

* remove duplicate type

* update prefetch

* functions are not valid queryKeys

* add option to queryFn, formatting

* Add dtslinting to ci test

* remove deprecated variables

* add types to formatting

* add resetErrorBoundaries

Co-authored-by: Michaël De Boey <[email protected]>
  • Loading branch information
wolverineks and MichaelDeBoey authored Jun 29, 2020
1 parent fd9c8a1 commit 7527457
Show file tree
Hide file tree
Showing 5 changed files with 304 additions and 279 deletions.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"repository": "tannerlinsley/react-query",
"homepage": "https://github.com/tannerlinsley/react-query#readme",
"main": "index.js",
"_temporarily_disabled_types": "types/index.d.ts",
"types": "types/index.d.ts",
"module": "dist/react-query.mjs",
"sideEffects": false,
"scripts": {
"test": "is-ci \"test:ci\" \"test:dev\"",
"test:dev": "jest --watch",
"test:ci": "jest",
"test:ci": "jest && yarn dtslint",
"test:coverage": "yarn test:ci; open coverage/lcov-report/index.html",
"build": "NODE_ENV=production rollup -c",
"now-build": "yarn && cd www && yarn && yarn build",
Expand All @@ -22,7 +22,7 @@
"prepublishOnly": "yarn test:ci && yarn formatReadme",
"release": "yarn publish",
"releaseNext": "yarn publish --tag next",
"format": "prettier {.,src,src/**,example/src,example/src/**}/*.{md,js,jsx,tsx,json} --write",
"format": "prettier {.,src,src/**,example/src,example/src/**,types}/*.{md,js,jsx,tsx,json} --write",
"formatReadme": "yarn doctoc",
"doctoc": "npx doctoc --maxlevel 2 README.md",
"jump2header": "npx @strdr4605/jump2header --header 'documentation' --start 'Installation' -e 2 --silent -l 2",
Expand Down Expand Up @@ -59,6 +59,7 @@
"@rollup/plugin-replace": "^2.3.3",
"@svgr/rollup": "^5.4.0",
"@testing-library/react": "^10.2.1",
"@types/react": "^16.9.41",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.0.1",
"babel-plugin-transform-async-to-promises": "^0.8.15",
Expand Down Expand Up @@ -93,6 +94,7 @@
"rollup-plugin-prettier": "^2.1.0",
"rollup-plugin-size": "^0.2.2",
"rollup-plugin-terser": "^6.1.0",
"rollup-plugin-visualizer": "^4.0.4"
"rollup-plugin-visualizer": "^4.0.4",
"typescript": "^3.9.5"
}
}
Loading

0 comments on commit 7527457

Please sign in to comment.