ngrx / platform

Reactive State for Angular

Home Page:https://ngrx.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rename `signals` to `computed` when defining custom features with input for consistency

markostanimirovic opened this issue · comments

Which @ngrx/* package(s) are relevant/related to the feature request?

signals

Information

Rename signals with computed when defining custom features with input for consistent naming with withComputed feature.

function withN() {
  return signalStoreFeature(
    {
-      signals: type<{ l: Signal<number>; m: Signal<number> }>(),
+     computed: type<{ l: Signal<number>; m: Signal<number> }>(),
    },
    withComputed(({ l, m }) => ({
      n: computed(() => l() + m()),
    }))
  );
}

Describe any alternatives/workarounds you're currently using

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No