Function useFragment

  • Type Parameters

    • TType

    Parameters

    • _documentNode: DocumentTypeDecoration<TType, any>
    • fragmentType: [TType] extends [{
               $fragmentName?: TKey;
          }]
          ? TKey extends string
              ? {
                   $fragmentRefs?: {
                      [key in string]: TType
                  };
              }
              : never
          : never

    Returns TType

  • Type Parameters

    • TType

    Parameters

    • _documentNode: DocumentTypeDecoration<TType, any>
    • fragmentType: undefined | null | ([TType] extends [{
               $fragmentName?: TKey;
          }]
          ? TKey extends string
              ? {
                   $fragmentRefs?: {
                      [key in string]: TType
                  };
              }
              : never
          : never)

    Returns TType | null | undefined

  • Type Parameters

    • TType

    Parameters

    • _documentNode: DocumentTypeDecoration<TType, any>
    • fragmentType: readonly ([TType] extends [{
               $fragmentName?: TKey;
          }]
          ? TKey extends string
              ? {
                   $fragmentRefs?: {
                      [key in string]: TType
                  };
              }
              : never
          : never)[]

    Returns ReadonlyArray<TType>

  • Type Parameters

    • TType

    Parameters

    • _documentNode: DocumentTypeDecoration<TType, any>
    • fragmentType: undefined | null | readonly ([TType] extends [{
               $fragmentName?: TKey;
          }]
          ? TKey extends string
              ? {
                   $fragmentRefs?: {
                      [key in string]: TType
                  };
              }
              : never
          : never)[]

    Returns ReadonlyArray<TType> | null | undefined

Generated using TypeDoc