18 lines
311 B
TypeScript
18 lines
311 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"]);
|
||
|
}
|
||
|
|
||
|
}
|