UNPKG

static-injector

Version:

Angular 依赖注入独立版本;Angular dependency injection standalone version

22 lines (21 loc) 950 B
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { Resource, type DebounceTimer, type DebouncedOptions } from './api'; /** * Creates a resource representing a debounced version of the source signal. * * @param source The source signal to debounce. * @param wait The amount of time to wait before calling the source signal, or a function that * returns a promise that resolves when the debounced value should be updated. * @param options The options to use for the debounced signal. * @returns A resource representing the debounced signal. * @experimental 22.0 * * @see [Debouncing signals with `debounced`](guide/signals/debounced) */ export declare function debounced<T>(source: () => T, wait: NoInfer<DebounceTimer<T>>, options?: NoInfer<DebouncedOptions<T>>): Resource<T>;