import { GenericMessageEvent , MessageEvent , ReactionAddedEvent , ReactionMessageItem , } from '@slack/bolt' ; export const isGenericMessageEvent = ( msg ) : msg is GenericMessageEvent => ( msg as GenericMessageEvent ) . subtype === undefined ; export const isMessageItem = ( item ) : item is ReactionMessageItem => ( item as ReactionMessageItem ) . type === 'message' ;