update Person model

pull/4/head
SiranWeb 2022-11-14 19:03:11 +03:00
rodzic dda8be976d
commit a3e2588365
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -8,10 +8,10 @@ import {PersonFields} from "./Person.types";
* {@link https://www.w3.org/ns/activitystreams#Person Docs} * {@link https://www.w3.org/ns/activitystreams#Person Docs}
*/ */
export class Person extends APBase<PersonFields>{ export class Person extends APBase<PersonFields>{
constructor(fields: PersonFields) { static create(fields: PersonFields) {
super({ return APBase._create<PersonFields>({
type: ASModelType.Person, type: ASModelType.Person,
...fields ...fields,
}) });
} }
} }