Skip to content

Commit

Permalink
refactor: get rid of any cast
Browse files Browse the repository at this point in the history
solution provided by @relu91

Co-authored-by: Cristiano Aguzzi <relu91@users.noreply.github.com>
  • Loading branch information
danielpeintner and relu91 authored May 16, 2022
1 parent f19aa65 commit 8ff9223
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/exposed-thing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ export default class ExposedThing extends TD.Thing implements WoT.ExposedThing {
}
}
if (!languageSet) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(arrayContext as any).push({
(arrayContext as Exclude<typeof arrayContext, []>).push({
"@language": TD.DEFAULT_CONTEXT_LANGUAGE,
});
"@language": TD.DEFAULT_CONTEXT_LANGUAGE,
});
}
Expand Down

0 comments on commit 8ff9223

Please sign in to comment.