Verify that the value matches the pattern provided, but fail if any fields only match via type coercion.
For example,
t.matchStrict({ a: 1 }, { a: Number }, 'this passes')t.matchStrict({ a: 1 }, { a: '1' }, 'this fails') Copy
t.matchStrict({ a: 1 }, { a: Number }, 'this passes')t.matchStrict({ a: 1 }, { a: '1' }, 'this fails')
Rest
Verify that the value matches the pattern provided, but fail if any fields only match via type coercion.
For example,