Skip to content

Commit

Permalink
fix lint issues, readonly stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazuh committed Feb 24, 2024
1 parent 26efa2d commit 66f58b3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
14 changes: 7 additions & 7 deletions src/entities/info.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export interface RequestInfo {
url: string;
method: string;
body: string;
headers: { [key: string]: string };
readonly url: string;
readonly method: string;
readonly body: string;
readonly headers: { [key: string]: string };
}

export interface ResponseInfo {
status: number;
body: string;
headers: { [key: string]: string };
readonly status: number;
readonly body: string;
readonly headers: { [key: string]: string };
}
28 changes: 14 additions & 14 deletions src/entities/management.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
export interface Project {
uuid: string;
name: string;
sections: ProjectSection[];
specs: ProjectRequestSpec[];
readonly uuid: string;
readonly name: string;
readonly sections: ProjectSection[];
readonly specs: ProjectRequestSpec[];
}

export interface ProjectSection {
uuid: string;
name: string;
readonly uuid: string;
readonly name: string;
}

export interface ProjectRequestSpec {
uuid: string;
url: string;
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
headers: ProjectRequestSpecHeader[];
body: string;
readonly uuid: string;
readonly url: string;
readonly method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
readonly headers: ProjectRequestSpecHeader[];
readonly body: string;
}

export interface ProjectRequestSpecHeader {
key: string;
value: string;
isEnabled: boolean;
readonly key: string;
readonly value: string;
readonly isEnabled: boolean;
}
2 changes: 1 addition & 1 deletion src/features/project-workspace/ProjectWorkspacePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ const HTTP_METHODS: Array<ProjectRequestSpec["method"]> = [
"PUT",
"PATCH",
"DELETE",
] as const;
];

function CreateRequestSpecButton() {
const { create } = useRequestsSpecs();
Expand Down

0 comments on commit 66f58b3

Please sign in to comment.