You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can import the signals and utilities from `'@ddtmm/angular-signal-generators`. Like regular signals, the library's signals are used just like ordinary functions.
19
+
You can import the signals and utilities from `@ddtmm/angular-signal-generators`. Like regular signals, the library's signals are used just like ordinary functions.
@@ -123,14 +123,14 @@ Converts a signal to an AsyncIterator. Once created, changes are retained until
123
123
124
124
## Conventions
125
125
126
-
### SignalInput and ValueSource
126
+
### ReactiveSource and ValueSource
127
127
As much as possible signals the functions provided try to create signals from either values or other signals.
128
-
To accommodate this, many arguments are of type **SignalInput<T>** or **ValueSource<T>**.
128
+
To accommodate this, many arguments are of type **ReactiveSource<T>** or **ValueSource<T>**.
129
129
130
-
*SignalInput* can be either something that can be either converted to a signal with *toSignal*, a function that can be passed to *computed* or a regular old *signal*. The purpose of this is to make things just a bit more convenient.
130
+
*ReactiveSource* can be either something that can be either converted to a signal with *toSignal*, a function that can be passed to *computed* or a regular old *signal*. The purpose of this is to make things just a bit more convenient.
131
131
132
132
### ValueSource
133
-
A *ValueSource* is a *SignalSource****or a value***. The limiting factor here is that if you wanted to use a *SignalSource* as a value, then you'd have to wrap that in a *signal*.
133
+
A *ValueSource* is a *ReactiveSource****or a value***. The limiting factor here is that if you wanted to use a *SignalSource* as a value, then you'd have to wrap that in a *signal*.
134
134
135
135
```ts
136
136
const timerFromValue =timerSignal(1000);
@@ -144,10 +144,11 @@ const timerSource$ = new BehaviorSubject(1000);
144
144
const timerFromObservable =timer(timerSource$);
145
145
```
146
146
### Overloads
147
-
Several generators that accept a traditional value and a *SignalInput* will have different return types. Those that accept a *SignalInput* will return a read only signal, whereas those with a traditional value will have methods to update the signal, though not necessarily the same as a *WritableSignal*.
147
+
Several generators that accept a traditional value and a *ReactiveSource* will have different return types. Those that accept a *ReactiveSource* will return a read only signal, whereas those with a traditional value will have methods to update the signal, though not necessarily the same as a *WritableSignal*.
148
148
149
149
### Injector
150
-
All signal generators have an options parameter that accept injector. This is either because *effect* is needed sometimes or if you *toSignal* is used.
150
+
All signal generators have an options parameter that accept injector. This is either because *effect* is needed sometimes or it passed
0 commit comments