Type alias FragmentType<TDocumentType>

FragmentType<TDocumentType>: TDocumentType extends DocumentTypeDecoration<infer TType, any>
    ? [TType] extends [{
             $fragmentName?: infer TKey;
        }]
        ? TKey extends string
            ? {
                 $fragmentRefs?: {
                    [key in TKey]: TType
                };
            }
            : never
        : never
    : never

Type Parameters

Generated using TypeDoc