diff --git a/packages/query-core/src/types.ts b/packages/query-core/src/types.ts index ea43533811..ce139b04d9 100644 --- a/packages/query-core/src/types.ts +++ b/packages/query-core/src/types.ts @@ -42,9 +42,11 @@ export type DefaultError = Register extends { export type QueryKey = ReadonlyArray -export declare const dataTagSymbol: unique symbol -export declare const dataTagErrorSymbol: unique symbol -export declare const unsetMarker: unique symbol +export const dataTagSymbol = Symbol('dataTagSymbol') +export type dataTagSymbol = typeof dataTagSymbol +export const dataTagErrorSymbol = Symbol('dataTagErrorSymbol') +export type dataTagErrorSymbol = typeof dataTagErrorSymbol +export const unsetMarker = Symbol('unsetMarker') export type UnsetMarker = typeof unsetMarker export type AnyDataTag = { [dataTagSymbol]: any