16 lines
491 B
TypeScript
16 lines
491 B
TypeScript
import { DeletedTransferPayload } from '../../TransferPayload'
|
|
import { PayloadInterface } from './PayloadInterface'
|
|
|
|
export interface DeletedPayloadInterface extends PayloadInterface<DeletedTransferPayload> {
|
|
readonly deleted: true
|
|
readonly content: undefined
|
|
|
|
/**
|
|
* Whether a payload can be discarded and removed from storage.
|
|
* This value is true if a payload is marked as deleted and not dirty.
|
|
*/
|
|
discardable: boolean | undefined
|
|
|
|
ejected(): DeletedTransferPayload
|
|
}
|