fix type definition

This commit is contained in:
Hayden 2024-01-05 13:07:33 -06:00
parent 9b6db67d38
commit cb01595180
No known key found for this signature in database
GPG key ID: 17CF79474E257545

View file

@ -1,5 +1,5 @@
import { BaseAPI, route } from "./base"; import { BaseAPI, route } from "./base";
import { ApiSummary, LoginForm, TokenResponse, UserRegistration } from "./types/data-contracts"; import { APISummary, LoginForm, TokenResponse, UserRegistration } from "./types/data-contracts";
export type StatusResult = { export type StatusResult = {
health: boolean; health: boolean;
@ -10,7 +10,7 @@ export type StatusResult = {
export class PublicApi extends BaseAPI { export class PublicApi extends BaseAPI {
public status() { public status() {
return this.http.get<ApiSummary>({ url: route("/status") }); return this.http.get<APISummary>({ url: route("/status") });
} }
public login(username: string, password: string, stayLoggedIn = false) { public login(username: string, password: string, stayLoggedIn = false) {