Function isFragmentReady

  • Type Parameters

    • TQuery

    • TFrag

    Parameters

    • queryNode: DocumentTypeDecoration<TQuery, any>
    • fragmentNode: TypedDocumentNode<TFrag, {
          [key: string]: any;
      }>
    • data: undefined | null | ([Incremental<TFrag>] extends [{
               $fragmentName?: TKey;
          }]
          ? TKey extends string
              ? {
                   $fragmentRefs?: {
                      [key in string]: {
                           $fragmentName?: TKey;
                      } & Incremental<TFrag>
                  };
              }
              : never
          : never)

    Returns data is [TFrag] extends [{
             $fragmentName?: TKey;
        }]
        ? TKey extends string
            ? {
                 $fragmentRefs?: {
                    [key in string]: TFrag
                };
            }
            : never
        : never

Generated using TypeDoc