Strictify index.tsx
Summary: As per title Reviewed By: danielbuechele Differential Revision: D17265679 fbshipit-source-id: 664f92f803a44dd485fb7078b59c88e95998decf
This commit is contained in:
committed by
Facebook Github Bot
parent
428f6b4fc1
commit
b75a3dc56b
@@ -5,6 +5,8 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {Actions} from '.';
|
||||
|
||||
export type State = {
|
||||
[pluginKey: string]: Object;
|
||||
};
|
||||
@@ -29,8 +31,8 @@ export type Action =
|
||||
const INITIAL_STATE: State = {};
|
||||
|
||||
export default function reducer(
|
||||
state: State = INITIAL_STATE,
|
||||
action: Action,
|
||||
state: State | undefined = INITIAL_STATE,
|
||||
action: Actions,
|
||||
): State {
|
||||
if (action.type === 'SET_PLUGIN_STATE') {
|
||||
const newPluginState = action.payload.state;
|
||||
|
||||
Reference in New Issue
Block a user