Skip to content
Document Authoring DA  API Docs v1.20.0
npmGitHub

DocAuthDocumentEventHandlerNEW

DocAuthDocumentEventHandler<EventName> = DocAuthDocumentEvents[EventName] extends void ? () => void : (payload) => void

Event listener accepted by DocAuthDocument.on, DocAuthDocument.off, and DocAuthDocument.once.

Events without a payload receive no arguments. Other handlers receive the payload associated with their event name in DocAuthDocumentEvents.

EventName extends keyof DocAuthDocumentEvents