22 lines
380 B
TypeScript
22 lines
380 B
TypeScript
|
import { DefaultClient } from "./client";
|
||
|
|
||
|
export class Version {
|
||
|
|
||
|
version_current: string;
|
||
|
version_latest: string;
|
||
|
outdated: boolean;
|
||
|
|
||
|
constructor() {
|
||
|
throw Error();
|
||
|
}
|
||
|
|
||
|
static get(): Promise<Version> {
|
||
|
return DefaultClient.fetch<Version>(["admin", "version"]);
|
||
|
}
|
||
|
|
||
|
toString(): string {
|
||
|
return this.version_current;
|
||
|
}
|
||
|
|
||
|
}
|