generator-fountain-react
generator-fountain-react copied to clipboard
Added fixes to the TSX redux+react todoMVC
According to this issuse: https://github.com/FountainJS/generator-fountain-react/issues/70
I have fixed all the mentioned problems according to the advice in the issue itself by @bradharms
ERROR in ./src/app/containers/App.tsx
(2,25): error TS2307: Cannot find module '~react-redux~redux'.
ERROR in ./src/app/containers/App.tsx
(60,3): error TS2345: Argument of type 'typeof App' is not assignable to parameter of type 'Component<{ todos: any; } & { actions: { addTodo: (text: string) => { type: string; text: string;...'.
Type 'typeof App' is not assignable to type 'StatelessComponent<{ todos: any; } & { actions: { addTodo: (text: string) => { type: string; text...'.
Type 'typeof App' provides no match for the signature '(props: { todos: any; } & { actions: { addTodo: (text: string) => { type: string; text: string; }; deleteTodo: (id: number) => { type: string; id: number; }; editTodo: (id: number, text: string) => { type: string; id: number; text: string; }; completeTodo: (id: number) => { type: string; id: number; }; completeAll: () => { type: string; }; clearCompleted: () => { type: string; }; }; } & { children?: ReactNode; }, context?: any): ReactElement<any>'.
ERROR in ./src/app/components/MainSection.tsx
(95,25): error TS2339: Property 'id' does not exist on type '{}'.
ERROR in ./src/index.tsx
(3,22): error TS2307: Cannot find module '~react-redux~redux'.
The fixes make sure the typings are correct and make it so gulp build
passes correctly.