UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

19 lines (16 loc) 494 B
import {defineEvent} from '@sanity/telemetry' interface DocumentPublishedInfo { /** * The document was created and published straight away */ publishedImmediately: boolean /** * The document had a previously published version when it was published */ previouslyPublished: boolean } export const DocumentPublished = defineEvent<DocumentPublishedInfo>({ name: 'Document Published', version: 1, description: 'User clicked the "Publish" button in the document pane', })