PokéRogue
    Preparing search index...
    • Determine whether data.property exists and is a non-null an object.

      Type Parameters

      • const T extends string

        The string literal type of the property

      Parameters

      • data: Record<string, unknown>

        The object to ensure has a specific property. Must be a non-null object.

      • property: StringLiteral<T>

        String literal of the property in question

      Returns data is Record<string, unknown> & Record<T, Record<string, unknown>>

      Whether the property exists and is a non-null object