Skip to main content

ValueOrUpdater

type

A value type, or an updater for that value type. For use with $setState or any user-defined wrappers around it.

type ValueOrUpdater<V> = V | ((prevValue: V) => V)

Import

import { ValueOrUpdater } from '@modular/sdk/editor';