Make dispatcher/notifications.tsx strict
Summary: _typescript_ Reviewed By: jknoxville Differential Revision: D17204312 fbshipit-source-id: 23a3b5144545db9c165fc853ece40bb5025391e6
This commit is contained in:
committed by
Facebook Github Bot
parent
76e857041c
commit
c91b778fc0
@@ -107,7 +107,13 @@ export default (store: Store, logger: Logger) => {
|
||||
const split = key.split('#');
|
||||
const pluginId = split.pop();
|
||||
const client = split.join('#');
|
||||
|
||||
if (!pluginId) {
|
||||
return;
|
||||
}
|
||||
|
||||
const persistingPlugin:
|
||||
| undefined
|
||||
| typeof FlipperPlugin
|
||||
| typeof FlipperDevicePlugin = pluginMap.get(pluginId);
|
||||
if (persistingPlugin && persistingPlugin.getActiveNotifications) {
|
||||
|
||||
Reference in New Issue
Block a user