Skip to content

Commit

Permalink
Merge pull request #168 from samply/pr-fix-typescript-errors
Browse files Browse the repository at this point in the history
fix: some typescript errors
  • Loading branch information
patrickskowronekdkfz authored Jan 14, 2025
2 parents f2f65f1 + 5a9a048 commit a97ddd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/lib/src/classes/blaze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class Blaze {
dataResponse,
);
}
const blazeResponse: Site = await dataResponse.json();
const blazeResponse: SiteData = await dataResponse.json();

response = new Map<string, Site>().set(this.name, {
status: "succeeded",
Expand Down
1 change: 1 addition & 0 deletions packages/lib/src/classes/spot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import type { SiteData, Status } from "../types/response";
import type { ResponseStore } from "../types/backend";
import type { BeamResult } from "../types/spot";

export class Spot {
private currentTask!: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/types/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type Status = "claimed" | "succeeded" | "tempfailed" | "permfailed";

export type Site = {
status: Status;
data: SiteData;
data: SiteData | null;
};

export type SiteData = {
Expand Down

0 comments on commit a97ddd5

Please sign in to comment.