UNPKG

@dotcms/client

Version:

Official JavaScript library for interacting with DotCMS REST APIs.

14 lines (13 loc) 503 B
import { DotCMSGraphQLPage, DotCMSPageAsset } from '@dotcms/types'; /** * Transforms a GraphQL Page response to a Page Entity. * * @param {GraphQLPageResponse} graphQLPageResponse - The GraphQL Page response object. * @returns {object|null} The transformed Page Entity or null if the page is not present. * * @example * ```ts * const pageEntity = graphqlToPageEntity(graphQLPageResponse); * ``` */ export declare const graphqlToPageEntity: (page: DotCMSGraphQLPage) => DotCMSPageAsset | null;