@metreeca/core - v0.10.0
    Preparing search index...

    Type Alias Defined<T>

    Defined: T & (null | {})

    Defined value.

    Strips undefined from a type, leaving every other constituent in place: null is retained, as definedness is about assignment rather than emptiness.

    Warning

    Defined<any> resolves to any and admits undefined again.

    Type Parameters

    • T = null | {}

      The type to strip undefined from, defaults to any value other than undefined