activitypub-models/src/models/orderedCollection/OrderedCollection.model.ts

18 wiersze
635 B
TypeScript

import {APBase} from "../apBase/APBase.model";
import {ASModelType} from "../../common/types";
import {OrderedCollectionFields} from "./OrderedCollection.types";
/**
* A subtype of Collection in which members of
* the logical collection are assumed to always be strictly ordered.
*
* {@link https://www.w3.org/ns/activitystreams#OrderedCollection Docs}
*/
export class OrderedCollection extends APBase<OrderedCollectionFields>{
static create(fields: OrderedCollectionFields) {
return APBase._create<OrderedCollectionFields>({
type: ASModelType.OrderedCollection,
...fields,
});
}
}