UNPKG

@message-queue-toolkit/core

Version:

Useful utilities, interfaces and base classes for message queue handling. Supports AMQP and SQS with a common abstraction on top currently

9 lines (8 loc) 564 B
/** * Returns true if `maybeSubset` does not contain any fields in addition to the fields that `maybeSuperset` contain, and all of the overlapping fields are equal on a shallow level. */ export declare function isShallowSubset(maybeSubset?: Record<string, unknown>, maybeSuperset?: Record<string, unknown>): boolean; /** * Returns true if `validatedObject` contains all of the fields included on `matcher`, and their values are deeply equal */ export declare function objectMatches(matcher: Record<string, any>, validatedObject: Record<string, any>): boolean;