@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 +1 -1
- package/src/component/types.ts +3 -4
package/package.json
CHANGED
package/src/component/types.ts
CHANGED
|
@@ -583,10 +583,9 @@ export type ExtractOrderField<T> = T extends {
|
|
|
583
583
|
: string;
|
|
584
584
|
|
|
585
585
|
/**
|
|
586
|
-
* Extract the variables type from a
|
|
586
|
+
* Extract the variables type from a gql.tada `DocumentDecoration`.
|
|
587
587
|
*
|
|
588
|
-
*
|
|
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
|
-
|
|
598
|
+
__apiType?: (variables: infer V) => unknown;
|
|
600
599
|
}
|
|
601
600
|
? NonNullable<V>
|
|
602
601
|
: never;
|