kopia lustrzana https://github.com/activitypub-js/activitypub-models
19 wiersze
613 B
TypeScript
19 wiersze
613 B
TypeScript
import {ASBase} from "../asBase/ASBase.model";
|
|
import {ASModelType} from "../../common/common.types";
|
|
import {TombstoneFields} from "./Tombstone.types";
|
|
|
|
/**
|
|
* A Tombstone represents a content object that has been deleted.
|
|
* It can be used in Collections to signify that there used to be an object
|
|
* at this position, but it has been deleted.
|
|
*
|
|
* {@link https://www.w3.org/ns/activitystreams#Tombstone Docs}
|
|
*/
|
|
export class Tombstone extends ASBase<TombstoneFields>{
|
|
constructor(fields: TombstoneFields) {
|
|
super({
|
|
type: ASModelType.Tombstone,
|
|
...fields
|
|
})
|
|
}
|
|
} |