mini-effect
    Preparing search index...

    Function isOfKind

    • A generic type guard to check the kind of an object.

      Type Parameters

      • const TKind extends string
      • const TObject extends { kind: string }

      Parameters

      • kind: TKind

        The kind to check for.

      • object: TObject

        The object to check.

      Returns object is Extract<TObject, { kind: TKind }>

      Whether it matches.