@ethlete/core 4.20.0 → 4.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -124,22 +124,19 @@ export declare const signalElementIntersection: (el: SignalElementBindingType, o
|
|
|
124
124
|
export declare const signalHostElementIntersection: (options?: SignalElementIntersectionOptions) => Signal<IntersectionObserverEntry[]>;
|
|
125
125
|
export declare const signalElementChildren: (el: SignalElementBindingType) => Signal<HTMLElement[]>;
|
|
126
126
|
export declare const previousSignalValue: <T>(signal: Signal<T>) => Signal<T | undefined>;
|
|
127
|
-
export declare const syncSignal: <T>(from: Signal<T>, to: WritableSignal<T>) =>
|
|
127
|
+
export declare const syncSignal: <T>(from: Signal<T>, to: WritableSignal<T>) => EffectRef;
|
|
128
128
|
export interface ControlValueSignalOptions {
|
|
129
|
-
/**
|
|
130
|
-
* @default 300
|
|
131
|
-
*/
|
|
132
129
|
debounceTime?: number;
|
|
133
130
|
/**
|
|
134
131
|
* @default false
|
|
135
132
|
*/
|
|
136
133
|
debounceFirst?: boolean;
|
|
137
134
|
}
|
|
138
|
-
export declare const controlValueSignal: <T extends AbstractControl<any, any> | Signal<AbstractControl<any, any> | null>, J extends T extends Signal<infer I> ? I : T>(control: T, options?: ControlValueSignalOptions) => Signal<ReturnType<NonNullable<J>["getRawValue"]
|
|
135
|
+
export declare const controlValueSignal: <T extends AbstractControl<any, any> | Signal<AbstractControl<any, any> | null>, J extends T extends Signal<infer I> ? I : T>(control: T, options?: ControlValueSignalOptions) => Signal<ReturnType<NonNullable<J>["getRawValue"]> | null>;
|
|
139
136
|
/**
|
|
140
137
|
* The first item in the pair is the previous value and the second item is the current value.
|
|
141
138
|
*/
|
|
142
|
-
export declare const controlValueSignalWithPrevious: <T extends AbstractControl<any, any>>(control: T, options?: ControlValueSignalOptions) => Signal<any[] | [ReturnType<NonNullable<T extends Signal<infer I> ? I : T>["getRawValue"]
|
|
139
|
+
export declare const controlValueSignalWithPrevious: <T extends AbstractControl<any, any>>(control: T, options?: ControlValueSignalOptions) => Signal<any[] | [ReturnType<NonNullable<T extends Signal<infer I> ? I : T>["getRawValue"]> | null, ReturnType<NonNullable<T extends Signal<infer I> ? I : T>["getRawValue"]> | null]>;
|
|
143
140
|
/**
|
|
144
141
|
* @deprecated Use `controlValueSignal` instead with `debounceTime` option.
|
|
145
142
|
*/
|
|
@@ -152,7 +149,7 @@ export interface DebouncedControlValueSignalOptions {
|
|
|
152
149
|
/**
|
|
153
150
|
* @deprecated Use `controlValueSignal` instead with `debounceTime` set to `300` and `debounceFirst` set to `true`.
|
|
154
151
|
*/
|
|
155
|
-
export declare const debouncedControlValueSignal: <T extends FormControl<any>>(control: T, options?: DebouncedControlValueSignalOptions) => Signal<ReturnType<NonNullable<T extends Signal<infer I> ? I : T>["getRawValue"]
|
|
152
|
+
export declare const debouncedControlValueSignal: <T extends FormControl<any>>(control: T, options?: DebouncedControlValueSignalOptions) => Signal<ReturnType<NonNullable<T extends Signal<infer I> ? I : T>["getRawValue"]> | null>;
|
|
156
153
|
export type InjectUtilConfig = {
|
|
157
154
|
/** The injector to use for the injection. Must be provided if the function is not called from within a injection context. */
|
|
158
155
|
injector?: Injector;
|