Identifying Properties Not in Schema with Schema.decodeUnknownSync

How do I get all properties (nested or otherwise) that don't match my schema? Eg. how would I figure out that b isn't in my MyStruct below?
const MyStruct = Schema.Struct({ a: Schema.String })

const more = {
  a: 'beep',
  b: 'boop'
}

console.log('decode from unknown', Schema.decodeUnknownSync(MyStruct)(more))
Was this page helpful?