(
options: {
readonly get: LazyArg<Out>
readonly update: (input: In) => void
readonly modify: (input: In) => void
}
)
| 27 | |
| 28 | /** @internal */ |
| 29 | export const make = <In, Out>( |
| 30 | options: { |
| 31 | readonly get: LazyArg<Out> |
| 32 | readonly update: (input: In) => void |
| 33 | readonly modify: (input: In) => void |
| 34 | } |
| 35 | ): MetricHook.MetricHook<In, Out> => ({ |
| 36 | [MetricHookTypeId]: metricHookVariance, |
| 37 | pipe() { |
| 38 | return pipeArguments(this, arguments) |
| 39 | }, |
| 40 | ...options |
| 41 | }) |
| 42 | |
| 43 | /** @internal */ |
| 44 | export const onModify = dual< |