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

    Type Alias Exactly<A, B>

    Exactly: Equivalent<A, B> extends true
        ? Equivalent<Required<A>, Required<B>> extends true
            ? Equivalent<keyof Required<A>, keyof Required<B>> extends true
                ? true
                : false
            : false
        : false

    Tests if two types are exactly the same shape.

    Use this as the parameter for Expect or ExpectNot in order to run tests.

    Type Parameters

    • A

      Type to compare.

    • B

      Type to compare.

    0.1.0