kopia lustrzana https://github.com/activitypub-js/activitypub-models
17 wiersze
484 B
TypeScript
17 wiersze
484 B
TypeScript
import {APBase} from "../apBase/APBase.model";
|
|
import {ASModelType} from "../../common/types";
|
|
import {DocumentFields} from "./Document.types";
|
|
|
|
/**
|
|
* Represents a document of any kind
|
|
*
|
|
* {@link https://www.w3.org/ns/activitystreams#Document Docs}
|
|
*/
|
|
export class Document extends APBase<DocumentFields>{
|
|
static create(fields: DocumentFields) {
|
|
return APBase._create<DocumentFields>({
|
|
type: ASModelType.Document,
|
|
...fields,
|
|
});
|
|
}
|
|
} |