import { Matched , trackMatched , Unmatched } from '../match-tracking' ; import { MapFnOrValue } from '../common' ; description internal param tracker param mapOrVal export function mapUnmatched < TIn , TOut > ( tracker , mapOrVal ) { const map = typeof mapOrVal !== 'function' ? ( ) => mapOrVal : ( mapOrVal as ( _ : TIn ) => TOut ) ; const out = map ( tracker . val ) ; return trackMatched ( out ) ; }