Strictify index.tsx

Summary: As per title

Reviewed By: danielbuechele

Differential Revision: D17265679

fbshipit-source-id: 664f92f803a44dd485fb7078b59c88e95998decf
This commit is contained in:
Pritesh Nandgaonkar
2019-09-10 10:34:31 -07:00
committed by Facebook Github Bot
parent 428f6b4fc1
commit b75a3dc56b
7 changed files with 29 additions and 18 deletions

View File

@@ -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;