mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
bf45e97641
* Update types * fix circular dep * type imports * lint type imports and --fix
19 lines
390 B
TypeScript
19 lines
390 B
TypeScript
import { observable } from "mobx";
|
|
import type { UnfurlResourceType, UnfurlResponse } from "@shared/types";
|
|
import Model from "./base/Model";
|
|
|
|
class Unfurl<UnfurlType extends UnfurlResourceType> extends Model {
|
|
static modelName = "Unfurl";
|
|
|
|
@observable
|
|
type: UnfurlType;
|
|
|
|
@observable
|
|
data: UnfurlResponse[UnfurlType];
|
|
|
|
@observable
|
|
fetchedAt: string;
|
|
}
|
|
|
|
export default Unfurl;
|