rimmel
Version:
A Streams-Oriented UI library for the Rx.Observable Universe
18 lines • 1.14 kB
TypeScript
import type { RMLTemplateExpressions } from '../types/internal';
import type { Observer } from '../types/futures';
/**
* An Event Source Operator that "cuts" the value of the underlying <input> element
* and resets it to the provided value or empty otherwise
* @param handler A handler function or observer to send events to
* @returns EventSource<string>
*/
export declare const swap: <E extends Event>(replacement: string | Function) => import("rxjs").OperatorFunction<E, string>;
/**
* An Event Source that "cuts" the value of the underlying <input> element
* and resets it to the provided value or empty otherwise
* @param replacement A new value to swap the current element's value with
* @param source A handler function or observer to send events to
* @returns EventSource<string>
*/
export declare const Swap: <T extends HTMLElement, I extends Event, S extends string | Function | undefined>(replacement?: string | Function, source?: RMLTemplateExpressions.SourceExpression<I>) => Observer<I> | ((target: RMLTemplateExpressions.TargetEventHandler<string>) => Observer<I>);
//# sourceMappingURL=swap-source.d.ts.map