Typeberry by Fluffy Labs - v0.4.0
    Preparing search index...

    Function assertEmpty

    • The function can be used to make sure that a particular object type has no keys at a certain point in the code.

      Basically that means that all other possible keys are exhaustively handled earlier and the assertion should make sure that no unexpected keys are introduced in the future.

      Type Parameters

      • T extends Record<string, never>

      Parameters

      • value: T

      Returns void