Skip to content

Commit 609ba3a

Browse files
author
Cassio Zen
committed
Updated Readme
1 parent 4988278 commit 609ba3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ console.log(state); // { value: 'active', nextEvents: ['TOGGLE'] }
5555
## What's up with the double parenthesis?
5656

5757
useStateMachine is a curried function because TypeScript doesn't yet support [partial gerenics type inference](https://github.com/microsoft/TypeScript/issues/14400).
58-
This work around allows TypeScript developers to provide the extended state type while still having TypeScript infer the configuration types.
58+
This work around allows TypeScript developers to provide a custom type for the context while still having TypeScript infer all the types used in the configuration (Like the state & transitions names, etc...).
5959

6060
## API
6161

0 commit comments

Comments
 (0)