Skip to content

Commit

Permalink
fix(types): change symbol declarations (#8468)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Lucas authored Dec 23, 2024
1 parent 18d81b9 commit 1e73d3a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/query-core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ export type DefaultError = Register extends {

export type QueryKey = ReadonlyArray<unknown>

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
Expand Down

0 comments on commit 1e73d3a

Please sign in to comment.