We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a19b440 commit baae8c6Copy full SHA for baae8c6
1 file changed
src/notifications/notificationItem.ts
@@ -20,6 +20,6 @@ export interface NotificationTreeItem {
20
readonly kind: 'notification';
21
}
22
23
-export function isNotificationTreeItem(item: any): item is NotificationTreeItem {
24
- return item.kind === 'notification';
+export function isNotificationTreeItem(item: unknown): item is NotificationTreeItem {
+ return !!item && (item as Partial<NotificationTreeItem>).kind === 'notification';
25
0 commit comments