@izumisy-tailor/tailor-data-viewer 0.2.8 → 0.2.9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@izumisy-tailor/tailor-data-viewer",
3
3
  "private": false,
4
- "version": "0.2.8",
4
+ "version": "0.2.9",
5
5
  "type": "module",
6
6
  "description": "Flexible data viewer component for Tailor Platform",
7
7
  "files": [
@@ -583,10 +583,9 @@ export type ExtractOrderField<T> = T extends {
583
583
  : string;
584
584
 
585
585
  /**
586
- * Extract the variables type from a GraphQL query object.
586
+ * Extract the variables type from a gql.tada `DocumentDecoration`.
587
587
  *
588
- * Works with `TypedDocumentNode` (used by gql-tada, graphql-codegen, etc.)
589
- * which stores the variables type in the `__variablesType` brand property.
588
+ * gql.tada stores variables via `__apiType?: (variables: V) => R`.
590
589
  *
591
590
  * @example
592
591
  * ```ts
@@ -596,7 +595,7 @@ export type ExtractOrderField<T> = T extends {
596
595
  * ```
597
596
  */
598
597
  export type ExtractQueryVariables<T> = T extends {
599
- __variablesType?: infer V;
598
+ __apiType?: (variables: infer V) => unknown;
600
599
  }
601
600
  ? NonNullable<V>
602
601
  : never;