diff --git a/packages/core/src/signals/src/api.ts b/packages/core/src/signals/src/api.ts index 5a220c6d38046..7c693f5e4db02 100644 --- a/packages/core/src/signals/src/api.ts +++ b/packages/core/src/signals/src/api.ts @@ -20,8 +20,6 @@ export const SIGNAL = /* @__PURE__ */ Symbol('SIGNAL'); * call it. * * Ordinary values can be turned into `Signal`s with the `signal` function. - * - * @developerPreview */ export type Signal = (() => T)&{ [SIGNAL]: unknown; @@ -29,8 +27,6 @@ export type Signal = (() => T)&{ /** * Checks if the given `value` is a reactive `Signal`. - * - * @developerPreview */ export function isSignal(value: unknown): value is Signal { return typeof value === 'function' && (value as Signal)[SIGNAL] !== undefined; @@ -38,8 +34,6 @@ export function isSignal(value: unknown): value is Signal { /** * A comparison function which can determine if two values are equal. - * - * @developerPreview */ export type ValueEqualityFn = (a: T, b: T) => boolean; @@ -49,8 +43,6 @@ export type ValueEqualityFn = (a: T, b: T) => boolean; * * This allows signals to hold non-primitive values (arrays, objects, other collections) and still * propagate change notification upon explicit mutation without identity change. - * - * @developerPreview */ export function defaultEquals(a: T, b: T) { return Object.is(a, b); diff --git a/packages/core/src/signals/src/computed.ts b/packages/core/src/signals/src/computed.ts index b1ba995d13696..0d2480be010ac 100644 --- a/packages/core/src/signals/src/computed.ts +++ b/packages/core/src/signals/src/computed.ts @@ -11,8 +11,6 @@ import {consumerAfterComputation, consumerBeforeComputation, producerAccessed, p /** * Options passed to the `computed` creation function. - * - * @developerPreview */ export interface CreateComputedOptions { /** @@ -23,8 +21,6 @@ export interface CreateComputedOptions { /** * Create a computed `Signal` which derives a reactive value from an expression. - * - * @developerPreview */ export function computed(computation: () => T, options?: CreateComputedOptions): Signal { const node: ComputedNode = Object.create(COMPUTED_NODE); diff --git a/packages/core/src/signals/src/signal.ts b/packages/core/src/signals/src/signal.ts index 102ceb945ba35..0e1a26c957aa0 100644 --- a/packages/core/src/signals/src/signal.ts +++ b/packages/core/src/signals/src/signal.ts @@ -20,8 +20,6 @@ let postSignalSetFn: (() => void)|null = null; /** * A `Signal` with a value that can be mutated via a setter interface. - * - * @developerPreview */ export interface WritableSignal extends Signal { /** @@ -45,8 +43,6 @@ export interface WritableSignal extends Signal { /** * Options passed to the `signal` creation function. - * - * @developerPreview */ export interface CreateSignalOptions { /** @@ -58,8 +54,6 @@ export interface CreateSignalOptions { /** * Create a `Signal` that can be set or updated directly. - * - * @developerPreview */ export function signal(initialValue: T, options?: CreateSignalOptions): WritableSignal { const node: SignalNode = Object.create(SIGNAL_NODE); diff --git a/packages/core/src/signals/src/untracked.ts b/packages/core/src/signals/src/untracked.ts index 5d1a60498a327..c8cdf4ea7ea74 100644 --- a/packages/core/src/signals/src/untracked.ts +++ b/packages/core/src/signals/src/untracked.ts @@ -11,8 +11,6 @@ import {setActiveConsumer} from './graph'; /** * Execute an arbitrary function in a non-reactive (non-tracking) context. The executed function * can, optionally, return a value. - * - * @developerPreview */ export function untracked(nonReactiveReadsFn: () => T): T { const prevConsumer = setActiveConsumer(null);