* Starts from any Model. An updater is called with the current Model: * `given(f)` is exactly `given(f(model))`. * * **Details** * * Before any other acting step, `given` replaces what `init` produced: * its Commands, events and sends are dropped. After one, it throws while * a
(
model:
| Component.Model<C>
| ((model: Component.Model<C>) => Component.Model<C>),
queries?: Given<C>,
shared?: {
readonly [K in keyof O]: readonly [
provider: O[K],
value: Component.Shared.Value<O[K]>
]
}
)
| 412 | * value]]`. Values given before and not listed are kept. |
| 413 | */ |
| 414 | given<const O extends ReadonlyArray<Component.Shared.Provider> = []>( |
| 415 | model: |
| 416 | | Component.Model<C> |
| 417 | | ((model: Component.Model<C>) => Component.Model<C>), |
no outgoing calls
no test coverage detected