kopia lustrzana https://github.com/activitypub-js/activitypub-models
17 wiersze
490 B
TypeScript
17 wiersze
490 B
TypeScript
import {APBase} from "../apBase/APBase.model";
|
|
import {MentionFields} from "./Mention.types";
|
|
import {ASModelType} from "../../common/types";
|
|
|
|
/**
|
|
* A specialized Link that represents an @mention.
|
|
*
|
|
* {@link https://www.w3.org/ns/activitystreams#Mention Docs}
|
|
*/
|
|
export class Mention extends APBase<MentionFields>{
|
|
static create(fields: MentionFields) {
|
|
return APBase._create<MentionFields>({
|
|
type: ASModelType.Mention,
|
|
...fields,
|
|
});
|
|
}
|
|
} |