We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab4108e commit 79cf050Copy full SHA for 79cf050
src/runtime/composables/queryRef.ts
@@ -1,10 +1,9 @@
1
import { useRoute } from 'nuxt/app'
2
-
3
-declare const ref, watch
+import { ref, watch } from '#imports'
4
5
type QueryParamType = 'string' | 'string[]' | 'number' | 'number[]' | 'boolean' | 'boolean[]' | 'object' | 'object[]'
6
7
-export const queryRef = <T>(key: string, defaultValue: T = null) => {
+export const queryRef = <T>(key: string, defaultValue: T | null = null) => {
8
const type = getType(defaultValue)
9
10
const loadedValue = loadQueryParamFromURL(key, type)
tsconfig.json
@@ -4,5 +4,8 @@
"dist",
"node_modules",
"playground",
- ]
+ ],
+ "compilerOptions": {
+ "noImplicitAny": false,
+ }
11
}
0 commit comments