UNPKG

@prismicio/client

Version:

The official JavaScript + TypeScript client library for Prismic

13 lines (12 loc) 413 B
/** * Get a Prismic repository's name from its standard Prismic Document API or * GraphQL endpoint. * * @param repositoryEndpoint - Prismic Document API endpoint for the repository. * * @returns The Prismic repository's name. * * @throws {@link Error} Thrown if an invalid Prismic Document API endpoint is * provided. */ export declare const getRepositoryName: (repositoryEndpoint: string) => string;