repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update selected item color in Pass menu
[ProtonMail-WebClient.git]
/
packages
/
pass
/
lib
/
b2b
/
b2b.utils.ts
blob
0e145935b4b166c891915e1932c73815c416db54
1
import type { B2BEvent, B2BEventName } from '@proton/pass/types/data/b2b';
2
3
export const isB2BEvent =
4
<T extends B2BEventName>(name: T) =>
5
(event: B2BEvent): event is B2BEvent<T> =>
6
event.name === name;