Skip to content

Commit

Permalink
fix(onDesktopName): made params optional
Browse files Browse the repository at this point in the history
  • Loading branch information
roerohan committed Feb 19, 2022
1 parent 26483df commit a246aca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ interface Props {
onConnect?: (rfb?: RFB) => void;
onDisconnect?: (rfb?: RFB) => void;
onCredentialsRequired?: (rfb?: RFB) => void;
onDesktopName?: (e: { detail: { name: string } }) => void;
onDesktopName?: (e?: { detail: { name: string } }) => void;
}
```

Expand Down
2 changes: 1 addition & 1 deletion src/lib/VncScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface Props {
onConnect?: (rfb?: RFB) => void;
onDisconnect?: (rfb?: RFB) => void;
onCredentialsRequired?: (rfb?: RFB) => void;
onDesktopName?: (e: { detail: { name: string } }) => void;
onDesktopName?: (e?: { detail: { name: string } }) => void;
}

export type VncScreenHandle = {
Expand Down

0 comments on commit a246aca

Please sign in to comment.