openapi-react-query-codegen
openapi-react-query-codegen copied to clipboard
feat: Add ensureQueryData support
#123
I have added support for ensureQueryData. This is useful when using TanStack Router in combination with TanStack Query. A sample project is also provided.
Coverage Report
| Status | Category | Percentage | Covered / Total |
|---|---|---|---|
| 🟢 | Lines | 99.04% (🎯 95%) | 2085 / 2105 |
| 🟢 | Statements | 99.04% (🎯 95%) | 2085 / 2105 |
| 🟢 | Functions | 100% (🎯 95%) | 41 / 41 |
| 🟢 | Branches | 94.05% (🎯 85%) | 190 / 202 |
File Coverage
| File | Stmts | % Branch | % Funcs | % Lines | Uncovered Lines |
|---|---|---|---|---|---|
| Changed Files | |||||
| src/constants.mts | 100% | 100% | 100% | 100% | |
| src/createExports.mts | 100% | 100% | 100% | 100% | |
| src/createSource.mts | 100% | 100% | 100% | 100% | |
npm publish
I need to use this feature urgently for work, so I will merge and release it. Since the tests have passed and there are no changes to the existing exports, I believe there shouldn’t be any issues.