@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
11 lines (10 loc) • 397 B
TypeScript
/**
* Get a repository's Prismic GraphQL endpoint.
*
* @typeParam RepositoryName - Name of the Prismic repository.
*
* @param repositoryName - Name of the repository.
*
* @returns The repository's Prismic REST API V2 endpoint
*/
export declare const getGraphQLEndpoint: <RepositoryName extends string>(repositoryName: RepositoryName) => `https://${RepositoryName}.cdn.prismic.io/graphql`;