Skip to main content

namedSignals

function

Return an object with the same shape as `defaults` with a Signal for each value. If specified, the second `opts` argument is a partial of overrides to the defaults and will be used as the initial value. Typically used to make a reactive version of some subset of the configuration of an extension, so it can be reconfigured at runtime.

function namedSignals<Defaults>(defaults: Defaults, opts?: NamedSignalsOptions<Defaults>): NamedSignalsOutput<Defaults>

Import

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

Notes

returns
An object with signals initialized with the default values