kopia lustrzana https://github.com/activitypub-js/activitypub-models
update Person model
rodzic
dda8be976d
commit
a3e2588365
|
@ -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,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue