UNPKG

@prismicio/client

Version:

The official JavaScript + TypeScript client library for Prismic

23 lines (22 loc) 681 B
import { WebhookBodyAPIUpdate } from "./apiUpdate.js"; import { WebhookBodyTestTrigger } from "./testTrigger.js"; //#region src/types/webhook/types.d.ts type WebhookBody = WebhookBodyAPIUpdate | WebhookBodyTestTrigger; /** * Types of Prismic Webhooks. * * @see More details: {@link https://prismic.io/docs/webhooks} */ declare const WebhookType: { readonly APIUpdate: "api-update"; readonly TestTrigger: "test-trigger"; }; interface WebhookBodyBase { type: (typeof WebhookType)[keyof typeof WebhookType]; domain: string; apiUrl: string; secret: string | null; } //#endregion export { WebhookBody, WebhookBodyBase, WebhookType }; //# sourceMappingURL=types.d.ts.map