Skip to content

Commit 7ac2c57

Browse files
author
Akos Kitta
committed
fix: type guard
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
1 parent 6471e1d commit 7ac2c57

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arduino-ide-extension/src/browser/contributions/create-cloud-copy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ interface CreateCloudCopyParams {
2323
}
2424
function isCreateCloudCopyParams(arg: unknown): arg is CreateCloudCopyParams {
2525
return (
26+
typeof arg === 'object' &&
2627
(<CreateCloudCopyParams>arg).model !== undefined &&
2728
(<CreateCloudCopyParams>arg).model instanceof SketchbookTreeModel &&
2829
(<CreateCloudCopyParams>arg).node !== undefined &&

0 commit comments

Comments
 (0)