Skip to content

Commit

Permalink
fixup! chore(binding-coap): use ts strict checking
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Aug 10, 2023
1 parent 10ce27f commit 1fee2bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/exposed-thing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,15 +607,15 @@ export default class ExposedThing extends TD.Thing implements WoT.ExposedThing {
public async handleObserveProperty(
name: string,
listener: ContentListener,
options?: WoT.InteractionOptions & { formIndex: number }
options: WoT.InteractionOptions & { formIndex: number }
): Promise<void> {
if (this.properties[name]) {
Helpers.validateInteractionOptions(this, this.properties[name], options);
const formIndex = ProtocolHelpers.getFormIndexForOperation(
this.properties[name],
"property",
"observeproperty",
options?.formIndex
options.formIndex
);

if (formIndex !== -1) {
Expand All @@ -639,15 +639,15 @@ export default class ExposedThing extends TD.Thing implements WoT.ExposedThing {
public handleUnobserveProperty(
name: string,
listener: ContentListener,
options?: WoT.InteractionOptions & { formIndex: number }
options: WoT.InteractionOptions & { formIndex: number }
): void {
if (this.properties[name]) {
Helpers.validateInteractionOptions(this, this.properties[name], options);
const formIndex = ProtocolHelpers.getFormIndexForOperation(
this.properties[name],
"property",
"unobserveproperty",
options?.formIndex
options.formIndex
);

if (formIndex !== -1) {
Expand Down

0 comments on commit 1fee2bd

Please sign in to comment.