Skip to content

Commit

Permalink
feat(computed): deprecated for linkedSignal
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Nov 1, 2024
1 parent 511e796 commit e38b946
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libs/ngxtension/computed/src/computed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import type { CreateComputedOptions } from '@angular/core';
import { computed as ngComputed } from '@angular/core';

/**
* @deprecated Will be removed in v2
* @deprecated Use `linkedSignal`. Will be removed in v5
* @since v4
*/
export function computed<TValue>(
computedCallback: (currentValue: TValue) => TValue,
Expand All @@ -19,6 +20,7 @@ export function computed<TValue>(
}

/**
* @deprecated Will be removed in v2
* @deprecated Use `linkedSignal`. Will be removed in v5
* @since v4
*/
export const extendedComputed = computed;

0 comments on commit e38b946

Please sign in to comment.