kopia lustrzana https://github.com/activitypub-js/activitypub-models
17 wiersze
430 B
TypeScript
17 wiersze
430 B
TypeScript
|
import {ASBase} from "../asBase/ASBase.model";
|
||
|
import {ASModelType} from "../../common/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 ASBase<ImageFields>{
|
||
|
constructor(fields: ImageFields) {
|
||
|
super({
|
||
|
type: ASModelType.Image,
|
||
|
...fields
|
||
|
})
|
||
|
}
|
||
|
}
|