Utility TypeScript @ 2.0.0-beta
    Preparing search index...

    Type Alias Satisfies<T_Type, T_SuperType>

    Satisfies: [T_Type] extends [T_SuperType] ? true : false

    Tests if a given type would satisfy a given supertype.

    e.g., Satisfies<"hello", string> should evaluate to true.

    Type Parameters

    • T_Type

      Type to compare.

    • T_SuperType

      Type that should be extended by Type.

    0.1.0