@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
14 lines • 521 B
text/typescript
//#region src/getGraphQLEndpoint.d.ts
/**
* 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
*/
declare const getGraphQLEndpoint: <RepositoryName extends string>(repositoryName: RepositoryName) => `https://${RepositoryName}.cdn.prismic.io/graphql`;
//#endregion
export { getGraphQLEndpoint };
//# sourceMappingURL=getGraphQLEndpoint.d.cts.map