From 1e73d3a3ad245d2b17dd1d72b01d3841b11d3a01 Mon Sep 17 00:00:00 2001 From: Nick Lucas Date: Mon, 23 Dec 2024 16:42:26 +0000 Subject: [PATCH] fix(types): change symbol declarations (#8468) --- packages/query-core/src/types.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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