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}
|
||||
*/
|
||||
export class Person extends APBase<PersonFields>{
|
||||
constructor(fields: PersonFields) {
|
||||
super({
|
||||
static create(fields: PersonFields) {
|
||||
return APBase._create<PersonFields>({
|
||||
type: ASModelType.Person,
|
||||
...fields
|
||||
})
|
||||
...fields,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue