(maybeValue: unknown)
| 8 | * `Immutable.is()` and can be used as keys in a `Map` or members in a `Set`. |
| 9 | */ |
| 10 | export function isValueObject(maybeValue: unknown): maybeValue is ValueObject { |
| 11 | return Boolean( |
| 12 | maybeValue && |
| 13 | // @ts-expect-error: maybeValue is typed as `{}` |
| 14 | typeof maybeValue.equals === 'function' && |
| 15 | // @ts-expect-error: maybeValue is typed as `{}` |
| 16 | typeof maybeValue.hashCode === 'function' |
| 17 | ); |
| 18 | } |
no outgoing calls
no test coverage detected