Skip to content

Commit

Permalink
reduce errors
Browse files Browse the repository at this point in the history
  • Loading branch information
salimkanoun committed Sep 1, 2024
1 parent 8aafcad commit 1b0226d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/model/Instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Series from "./Series";

class Instance {
id: string;
sopInstanceUID: string;
series: Series;
sopInstanceUID: string|undefined;
series: Series|undefined;

constructor(id: string) {
this.id = id;
Expand Down
2 changes: 1 addition & 1 deletion src/model/Study.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Study {
return this.studyInstanceUID;
};

toJSON = () => {
toJSON = () : Record<string,any> => {
return {
id: this.id,
studyDescription: this.studyDescription,
Expand Down
4 changes: 2 additions & 2 deletions src/ui/toast/ToastContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export type Toast = {
};

const defaultValue = {
pushToastRef: { current: (toast:Toast) : number=> {return 1} },
updateToastRef: { current: (id :number, toast: Toast) => { } },
pushToastRef: { current: (_toast:Toast) : number=> {return 1} },
updateToastRef: { current: (_id :number, _toast: Toast) => { } },
};

const ToastContext = createContext(defaultValue);
Expand Down
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
"noEmit": true,
"jsx": "react-jsx",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"strict": false,
"types": [
"vite-plugin-svgr/client"
]
Expand Down

0 comments on commit 1b0226d

Please sign in to comment.