kopia lustrzana https://github.com/activitypub-js/activitypub-models
19 wiersze
674 B
TypeScript
19 wiersze
674 B
TypeScript
import {ASBase} from "../asBase/ASBase.model";
|
|
import { ASObjectFields } from "./ASObject.types";
|
|
import {ASModelType} from "../../common/common.types";
|
|
|
|
/**
|
|
* Describes an object of any kind. The Object type serves as the base type for most of
|
|
* the other kinds of objects defined in the Activity Vocabulary,
|
|
* including other Core types such as Activity, intransitiveActivity, Collection and OrderedCollection.
|
|
*
|
|
* {@link https://www.w3.org/ns/activitystreams#Object Docs}
|
|
*/
|
|
export class ASObject extends ASBase<ASObjectFields>{
|
|
constructor(fields: ASObjectFields) {
|
|
super({
|
|
type: ASModelType.Object,
|
|
...fields
|
|
})
|
|
}
|
|
} |