ixfx
    Preparing search index...

    Type Alias CacheStream<T>

    A stream that caches its last value

    type CacheStream<T> = {
        last: () => T | undefined;
        resetCachedValue: () => void;
    }

    Type Parameters

    • T
    Index

    Properties

    last: () => T | undefined

    Gets the cached value, if available

    Type declaration

      • (): T | undefined
      • Returns T | undefined

    resetCachedValue: () => void

    Clears the last cached value

    Type declaration

      • (): void
      • Returns void