Skip to content

Commit

Permalink
fixup! chore: add guard-for-in eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jul 9, 2024
1 parent 5074f4a commit ef526c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/codecs/octetstream-codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,8 @@ export default class OctetstreamCodec implements ContentCodec {
}

result = result ?? Buffer.alloc(length);
// TODO: Use correct type for propertySchema
// eslint-disable-next-line @typescript-eslint/no-explicit-any
for (const [propertyName, propertySchema] of Object.entries(schema.properties) as [string, any]) {
if (Object.hasOwnProperty.call(value, propertyName) === false) {
throw new Error(`Missing property '${propertyName}'`);
Expand Down

0 comments on commit ef526c7

Please sign in to comment.