import type { $IntentionalAny } from './types' ; import updateImmutable from './updateDeep' ; export default function setDeepImmutable < S > ( state , path , replace ) { return updateImmutable ( state , path , ( ) => replace ) as $IntentionalAny as S ; }