io
Create an IO node from any value.
<T>(target: T, options: { shallow: true; }) => IoNode<T>| Name | Type |
|---|---|
| target | T |
| options | { shallow: true; } |
IoNode<T>
import { io } from '@iostore/store';
const result = io(/* ...args */);console.log(result);- 调用前请确认参数类型与可空性约束。
- 注意导入路径与运行环境(服务端/客户端)是否匹配。
相关 API
Section titled “相关 API”packages/io/src/lib/core/api/io.ts