Skip to content

Commit 1e73d3a

Browse files
authored
fix(types): change symbol declarations (#8468)
1 parent 18d81b9 commit 1e73d3a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/query-core/src/types.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ export type DefaultError = Register extends {
4242

4343
export type QueryKey = ReadonlyArray<unknown>
4444

45-
export declare const dataTagSymbol: unique symbol
46-
export declare const dataTagErrorSymbol: unique symbol
47-
export declare const unsetMarker: unique symbol
45+
export const dataTagSymbol = Symbol('dataTagSymbol')
46+
export type dataTagSymbol = typeof dataTagSymbol
47+
export const dataTagErrorSymbol = Symbol('dataTagErrorSymbol')
48+
export type dataTagErrorSymbol = typeof dataTagErrorSymbol
49+
export const unsetMarker = Symbol('unsetMarker')
4850
export type UnsetMarker = typeof unsetMarker
4951
export type AnyDataTag = {
5052
[dataTagSymbol]: any

0 commit comments

Comments
 (0)