kopia lustrzana https://github.com/activitypub-js/activitypub-models
18 wiersze
467 B
TypeScript
18 wiersze
467 B
TypeScript
import {APBase} from "../apBase/APBase.model";
|
|
import {ASModelType} from "../../common/types";
|
|
import {PersonFields} from "./Person.types";
|
|
|
|
/**
|
|
* Represents an individual person
|
|
*
|
|
* {@link https://www.w3.org/ns/activitystreams#Person Docs}
|
|
*/
|
|
export class Person extends APBase<PersonFields>{
|
|
static create(fields: PersonFields) {
|
|
return APBase._create<PersonFields>({
|
|
type: ASModelType.Person,
|
|
...fields,
|
|
});
|
|
}
|
|
}
|