@signaltree/callable-syntax 5.1.0 → 5.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,9 +69,9 @@ export default defineConfig({
|
|
|
69
69
|
The transform only affects build output - your TypeScript will still type-check correctly with callable syntax because SignalTree includes the necessary type augmentations.
|
|
70
70
|
|
|
71
71
|
```typescript
|
|
72
|
-
import {
|
|
72
|
+
import { signalTree } from '@signaltree/core';
|
|
73
73
|
|
|
74
|
-
const store =
|
|
74
|
+
const store = signalTree({
|
|
75
75
|
todos: [] as Todo[],
|
|
76
76
|
filter: 'all' as 'all' | 'active' | 'completed',
|
|
77
77
|
});
|