Skip to content

Commit

Permalink
fix: JS serial open optional settings
Browse files Browse the repository at this point in the history
  • Loading branch information
eleroy committed Jul 18, 2024
1 parent 34c075a commit d33e0e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions dist-js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export interface UsbPort {
export interface SerialPortOptions {
path: string;
baudRate: number;
dataBits: "Five" | "Six" | "Seven" | "Eight";
flowControl: "None" | "Software" | "Hardware";
parity: "None" | "Odd" | "Even";
stopBits: "One" | "Two";
dtr: boolean;
dataBits?: "Five" | "Six" | "Seven" | "Eight";
flowControl?: "None" | "Software" | "Hardware";
parity?: "None" | "Odd" | "Even";
stopBits?: "One" | "Two";
dtr?: boolean;
timeout?: number;
}
interface ReadOptions {
Expand Down
10 changes: 5 additions & 5 deletions guest-js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ export interface UsbPort {
export interface SerialPortOptions {
path: string;
baudRate: number;
dataBits: "Five" | "Six" | "Seven" | "Eight";
flowControl: "None" | "Software" | "Hardware";
parity: "None" | "Odd" | "Even";
stopBits: "One" | "Two";
dtr: boolean;
dataBits?: "Five" | "Six" | "Seven" | "Eight";
flowControl?: "None" | "Software" | "Hardware";
parity?: "None" | "Odd" | "Even";
stopBits?: "One" | "Two";
dtr?: boolean;
timeout?: number;
}

Expand Down

0 comments on commit d33e0e3

Please sign in to comment.