Files
standardnotes-app-web/packages/models/src/Domain/Abstract/Component/OutgoingItemMessagePayload.ts
Karol Sójko 325737bfbd chore: fix ContentType usage (#2353)
* chore: fix ContentType usage

* chore: fix specs
2023-07-12 13:53:29 +02:00

19 lines
527 B
TypeScript

import { ItemContent } from './../Content/ItemContent'
export type OutgoingItemMessagePayload<C extends ItemContent = ItemContent> = {
uuid: string
content_type: string
created_at: Date
updated_at: Date
deleted?: boolean
content?: C
clientData?: Record<string, unknown>
/**
* isMetadataUpdate implies that the extension should make reference of updated
* metadata, but not update content values as they may be stale relative to what the
* extension currently has.
*/
isMetadataUpdate: boolean
}