import type { ISubscriber } from "@thi.ng/rstream" ; import { maybeParseFloat } from "@thi.ng/strings/parse" ; example param stream export const $input = ( stream ) => ( e ) => stream . next ( ( < any > e . target ) . value ) ; /**
 * Similar to  $input , but attempts to first coerce value using
 * `parseFloat()`. Uses given `fallback` value (default: 0) if coercion failed
 * (i.e. if the event target's `.value` isn't numeric).
 *
 *  param stream param fallback export const $inputNum = ( stream , fallback = 0 ) => ( e ) => stream . next ( maybeParseFloat ( ( < any > e . target ) . value , fallback ) ) ; param stream export const $inputCheckbox = ( stream ) => ( e ) => stream . next ( ( < HTMLInputElement > e . target ) . checked ) ; param stream export const $inputTrigger = ( stream ) => ( ) => stream . next ( true ) ; param stream export const $inputFile = ( stream ) => ( e ) => stream . next ( ( < HTMLInputElement > e . target ) . files ! [ 0 ] ) ; param stream export const $inputFiles = ( stream ) => ( e ) => stream . next ( ( < HTMLInputElement > e . target ) . files ! ) ;