For use with TypeScript, install meiosis-setup
using npm
:
npm i meiosis-setup
Then you can import it and use it with this code:
import { meiosisSetup } from 'meiosis-setup';
interface State {
// your application state type
}
const cells = meiosisSetup<State>();
The setup gives you a stream of cells as explained in the Meiosis documentation.