Skip to content

Commit

Permalink
Fix typo test and typings for Subscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
deini authored and jamiebuilds committed May 17, 2018
1 parent 64b5d42 commit dc85f0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/unstated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function CounterWithAmountApp() {
);
}

const sharedAmountContainer = new AmountContainer();
const sharedAmountContainer = new AmounterContainer();

function CounterWithSharedAmountApp() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/unstated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface ContainerType<State extends object> {
}

interface SubscribeProps {
to: ContainerType<any>[];
to: (ContainerType<any> | Container<any>)[];
children(...instances: Container<any>[]): React.ReactNode;
}

Expand Down

0 comments on commit dc85f0e

Please sign in to comment.