kopia lustrzana https://github.com/activitypub-js/activitypub-models
17 wiersze
456 B
TypeScript
17 wiersze
456 B
TypeScript
import {APBase} from "../apBase/APBase.model";
|
|
import {ASModelType} from "../../common/types";
|
|
import {ImageFields} from "./Image.types";
|
|
|
|
/**
|
|
* An image document of any kind
|
|
*
|
|
* {@link https://www.w3.org/ns/activitystreams#Image Docs}
|
|
*/
|
|
export class Image extends APBase<ImageFields>{
|
|
static create(fields: ImageFields) {
|
|
return APBase._create<ImageFields>({
|
|
type: ASModelType.Image,
|
|
...fields,
|
|
});
|
|
}
|
|
} |