function debounce<T>(
getDurationSource: (value: T, index: number) => Source<unknown>,
getInitialDurationRange?:
| ((firstDebouncedValue: T, index: number) => InitialDurationInfo)
| null,
config?: DebounceConfig | null,
): Operator<T, T>| 1 | function debounce<T>( |
| 2 | getDurationSource: (value: T, index: number) => Source<unknown>, |
| 3 | getInitialDurationRange?: |
| 4 | | ((firstDebouncedValue: T, index: number) => InitialDurationInfo) |
| 5 | | null, |
| 6 | config?: DebounceConfig | null, |
| 7 | ): Operator<T, T> |
function debounce<T>(
getDurationSource: undefined | null,
getInitialDurationRange: (
firstDebouncedValue: T,
index: number,
) => InitialDurationInfo,
config?: DebounceConfig | null,
): Operator<T, T>| 1 | function debounce<T>( |
| 2 | getDurationSource: undefined | null, |
| 3 | getInitialDurationRange: ( |
| 4 | firstDebouncedValue: T, |
| 5 | index: number, |
| 6 | ) => InitialDurationInfo, |
| 7 | config?: DebounceConfig | null, |
| 8 | ): Operator<T, T> |
interface DebounceConfig {
emitPendingOnEnd?: boolean | null
leading?: boolean | null
trailing?: boolean | DebounceTrailingRestart | null
}| 1 | interface DebounceConfig { |
| 2 | emitPendingOnEnd?: boolean | null |
| 3 | leading?: boolean | null |
| 4 | trailing?: boolean | DebounceTrailingRestart | null |
| 5 | } |
var defaultDebounceConfig: DebounceConfig
type InitialDurationInfo =
| [Source<unknown>, (Source<unknown> | undefined | null)?]
| [undefined | null, Source<unknown>]| 1 | type InitialDurationInfo = |
| 2 | | [Source<unknown>, (Source<unknown> | undefined | null)?] |
| 3 | | [undefined | null, Source<unknown>] |
type DebounceTrailingRestart = 'restart'| 1 | type DebounceTrailingRestart = 'restart' |
var DebounceTrailingRestart: DebounceTrailingRestart