From c279bf6321f7d12713afe5d1db83738c84517f4a Mon Sep 17 00:00:00 2001 From: Shane Brinkman-Davis Delamore Date: Mon, 3 Oct 2022 15:14:58 -0700 Subject: [PATCH] wip: clearified problem --- examples/typescript-example/src/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/typescript-example/src/App.tsx b/examples/typescript-example/src/App.tsx index 7bd5786..20aa689 100644 --- a/examples/typescript-example/src/App.tsx +++ b/examples/typescript-example/src/App.tsx @@ -4,7 +4,8 @@ import "./App.css"; import * as MyModel from "./MyModel"; function App() { - const a = MyModel.use(() => "hi"); + const myModel = MyModel.use(); // myModel should be MyModelState + const isOn = MyModel.use(({ isOn }) => isOn); // isOn should be boolean return (