activitypub-models/src/models/collection/Collection.model.ts

18 wiersze
545 B
TypeScript

import {ASBase} from "../asBase/ASBase.model";
import {ASModelType} from "../../common/common.types";
import {CollectionFields} from "./Collection.types";
/**
* A Collection is a subtype of Object that represents
* ordered or unordered sets of Object or Link instances.
*
* {@link https://www.w3.org/ns/activitystreams#Collection Docs}
*/
export class Collection extends ASBase<CollectionFields>{
constructor(fields: CollectionFields) {
super({
type: ASModelType.Collection,
...fields
})
}
}