docs icon indicating copy to clipboard operation
docs copied to clipboard

Bug: Missing information in Typescript documentation

Open doliG opened this issue 1 year ago • 0 comments

Description

It's difficult to find how to type a statemachine because theres only a small line about it in the react recipe

For Typescript, you can create the context as createContext({ authService: {} as InterpreterFrom<typeof authMachine> }); to ensure strong typings.

Expected result

Add it in the using typescript section

Actual result

Searched for 1 or 2 hours before finding it

Additional context

See this thread on discord.

doliG avatar Aug 17 '22 08:08 doliG