Skip to content

Type Alias: CopyRx_Options<TOut, ThisArg>

CopyRx_Options<TOut, ThisArg> = object & DeferredOptions<ThisArg>

Defined in: packages/rx/src/copyRx.ts:26

Type Declaration

delay?

optional delay?: number

Debounce or throttle delay in milliseconds. If provided, updates to the output subject will be delayed accordingly.

Default: undefined

initialValue?

optional initialValue?: TOut

The initial value for the output subject. This is particularly useful when creating a new BehaviorSubject internally.

output?

optional output?: BehaviorSubject<TOut> | Subject<TOut>

An optional destination subject to which values will be copied. If provided, this subject will be returned by the function. If not provided, a new BehaviorSubject is created.

skipEmits?

optional skipEmits?: number | (number | undefined | null)[]

Number of initial emissions to skip from the input observable(s).

If an array is provided, each element corresponds to the observable at the same index.

Default: 1 for BehaviorSubject (to avoid redundant updates of the initial value), otherwise 0.

transformSequentially?

optional transformSequentially?: boolean

Use this only if

Type Parameters

TOut

TOut

ThisArg

ThisArg