Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

Added fixes to the TSX redux+react todoMVC #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vasilevich
Copy link

According to this issuse:
#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.

…ly, fixed some typings, and used Redux interface instead of some unknown interface in the example
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant