Checks if the provided object is a valid PalletEvent.

A PalletEvent is expected to have the following properties:

  • pallet: A string representing the name of the pallet associated with the event.
  • palletEvent: An object or string representing the details of the pallet event.

This function validates the presence and type of these properties in the provided object.

  • Parameters

    • event: any

      The object to be checked.

    Returns event is PalletEvent<string, string, any>

    true if the object is a valid PalletEvent, false otherwise.