nuxt-ui-tools 1.17.0 → 1.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "configKey": "nuxtUiTools",
6
6
  "docs": "https://ui.nuxt.com/docs/getting-started/installation/nuxt",
7
7
  "name": "nuxt-ui-tools",
8
- "version": "1.17.0",
8
+ "version": "1.17.1",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.3",
11
11
  "unbuild": "unknown"
@@ -5,10 +5,15 @@ import type { GenericObject, TableKnownFieldPath, TablePaginationState, TableSor
5
5
  /** Table name of the shared `QueryDefinition`, kept for public type compatibility. */
6
6
  export type TableQueryDefinition<TData = unknown> = QueryDefinition<TData>;
7
7
  /**
8
- * Result of a query definition: what its `queryFn` resolves to, or the data type of TanStack
8
+ * Result of a query definition: what the table actually receives.
9
+ *
10
+ * A `select` wins, because TanStack hands its return value to the consumer in place of the
11
+ * fetched data. Without one it is what the `queryFn` resolves to, or the data type of TanStack
9
12
  * options whose `queryFn` may be a ref or `skipToken` (Tuyau's `queryOptions()`).
10
13
  */
11
14
  export type TableSourceQueryResult<TQuery> = TQuery extends {
15
+ select: (...args: never[]) => infer TSelected;
16
+ } ? Awaited<TSelected> : TQuery extends {
12
17
  queryFn: (...args: never[]) => infer TResult;
13
18
  } ? Awaited<TResult> : TQuery extends UseQueryOptions<infer _TQueryFnData, infer _TError, infer TResult, infer _TQueryData, infer _TQueryKey> ? Awaited<TResult> : never;
14
19
  /** Row of a table query result: an array of rows, or a page (`{ rows }`). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-ui-tools",
3
- "version": "1.17.0",
3
+ "version": "1.17.1",
4
4
  "description": "Nuxt module and runtime toolkit for UI-heavy Nuxt applications",
5
5
  "homepage": "https://github.com/ChronicStone/nuxt-ui-tools#readme",
6
6
  "bugs": "https://github.com/ChronicStone/nuxt-ui-tools/issues",