devtypes - v2.0.0
    Preparing search index...

    Type Alias AssertDate<T>

    AssertDate: T

    Assert that a type is a Date.

    Type Parameters

    • T extends Date

      Type that must be a Date

    Ensures the type extends the built-in Date object. Useful for APIs that rely on actual Date instances.

    type A = AssertDate< Date >;    // ✓
    type B = AssertDate< string >; // ✗ TS error