Skip to content

Commit

Permalink
fix(solid-query): export InitialDataOptions types (#7707)
Browse files Browse the repository at this point in the history
Co-authored-by: Lachlan Collins <[email protected]>
  • Loading branch information
Brendonovich and lachlancollins authored Jul 11, 2024
1 parent 8ecf0f7 commit 1846abe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/solid-query/src/createQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type {
SolidQueryOptions,
} from './types'

type UndefinedInitialDataOptions<
export type UndefinedInitialDataOptions<
TQueryFnData = unknown,
TError = DefaultError,
TData = TQueryFnData,
Expand All @@ -23,7 +23,7 @@ type UndefinedInitialDataOptions<
}
>

type DefinedInitialDataOptions<
export type DefinedInitialDataOptions<
TQueryFnData = unknown,
TError = DefaultError,
TData = TQueryFnData,
Expand Down
4 changes: 4 additions & 0 deletions packages/solid-query/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export type {
InfiniteQueryObserverOptions,
} from './QueryClient'
export { createQuery, queryOptions } from './createQuery'
export type {
DefinedInitialDataOptions,
UndefinedInitialDataOptions,
} from './createQuery'
export {
QueryClientContext,
QueryClientProvider,
Expand Down

0 comments on commit 1846abe

Please sign in to comment.