Vinyl
    Preparing search index...

    Type Alias Covariant<T>

    Covariant: () => T

    Enforces type T to be in a covariant position. For example Invariant<Square> can be assigned to type Invariant<Polygon> but not vice versa.

    This should be used when an interface with type parameter T does not explicitly use T in an output position, but the interface implies out T.

    Type Parameters

    • T

    Type declaration

      • (): T
      • Returns T