Skip to main content

Variable: historyMessageSchema

const historyMessageSchema: object

Defined in: src/lib/messages/schema.ts:192

JSON schema for an undo or redo message

Type Declaration​

$id​

readonly $id: "paintcanvas/message/history" = "paintcanvas/message/history"

additionalProperties​

readonly additionalProperties: false = false

properties​

readonly properties: object

properties.protocol​

protocol: object

properties.protocol.const​

readonly const: 2 = PROTOCOL_VERSION

properties.step​

step: object

properties.step.pattern​

readonly pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" = UUID_PATTERN

properties.step.type​

readonly type: "string" = "string"

properties.type​

readonly type: object

properties.type.enum​

readonly enum: readonly ["undo", "redo"]

required​

readonly required: readonly ["protocol", "type", "step"]

type​

readonly type: "object" = "object"