Skip to content

Commit

Permalink
fix: fix error TS2304: Cannot find name 'SerialPort'
Browse files Browse the repository at this point in the history
  • Loading branch information
ziteh committed Jan 4, 2025
1 parent f58ca2f commit 12ac84a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/lib/serialport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ export class SerialPortManager {
return this.port && this.port.connected;
}

private port: SerialPort | null = null; // TODO linter type
// TODO
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
private port: SerialPort | null = null;

private reader: ReadableStreamDefaultReader | null = null;
private writer: WritableStreamDefaultWriter | null = null;

Expand Down
3 changes: 0 additions & 3 deletions src/pages/scripts.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import ScriptEditor from "@/components/script-editor";

export default function ScriptsPage() {
return (
<>
<h1>Scripts</h1>
<ScriptEditor />
</>
);
}

0 comments on commit 12ac84a

Please sign in to comment.