Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions integrations/react-nodenext/package.json
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
{
"name": "react-nodenext",
"private": true,
"type": "module",
"scripts": {
"test:types": "pnpm run test:types:ts6 && pnpm run test:types:ts7",
"test:types:ts6": "node ../../node_modules/typescript/lib/tsc.js --pretty false --project tsconfig.json",
"test:types:ts7": "node ../../node_modules/typescript70/lib/tsc.js --pretty false --project tsconfig.json"
},
"dependencies": {
"@tanstack/react-query": "workspace:*"
},
"devDependencies": {
"@types/react": "^19.2.7"
},
"nx": {
"targets": {
"test:types": {
"dependsOn": [
"^build"
]
}
}
}
}
10 changes: 10 additions & 0 deletions integrations/react-nodenext/src/hooks.cts
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
import { useQuery } from '@tanstack/react-query'

export function useMyHook() {
const query = useQuery({
queryKey: ['test'],
queryFn: () => 'hello',
})

return { data: query.data }
}
10 changes: 10 additions & 0 deletions integrations/react-nodenext/src/hooks.ts
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
import { useQuery } from '@tanstack/react-query'

export function useMyHook() {
const query = useQuery({
queryKey: ['test'],
queryFn: () => 'hello',
})

return { data: query.data }
Comment thread
TkDodo marked this conversation as resolved.
}
12 changes: 12 additions & 0 deletions integrations/react-nodenext/tsconfig.json
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"module": "nodenext",
"moduleResolution": "nodenext",
"declaration": true,
"emitDeclarationOnly": true,
"strict": true,
"rootDir": "./src",
"outDir": "./dist"
},
"include": ["./src"]
}
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading