UNPKG

@prismicio/client

Version:

The official JavaScript + TypeScript client library for Prismic

25 lines (23 loc) 602 B
import { version } from "../package.js"; //#region src/lib/devMsg.ts /** * Returns a `prismic.dev/msg` URL for a given message slug. * * @example * * ```ts * devMsg("missing-param") * // => "https://prismic.dev/msg/client/v1.2.3/missing-param.md" * ``` * * @param slug - Slug for the message. This corresponds to a Markdown file in * the Git repository's `/messages` directory. * * @returns The `prismic.dev/msg` URL for the given slug. */ const devMsg = (slug) => { return `https://prismic.dev/msg/client/v${version}/${slug}`; }; //#endregion export { devMsg }; //# sourceMappingURL=devMsg.js.map