Skip to content

Commit

Permalink
refactor: use typescript 5.5 filter improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Jul 14, 2024
1 parent 3c8fed8 commit ab0b669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/format-wd-entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export function image(
...entity.claimValues('P117'), // Chemical structure
]
.map(o => o.value)
.filter((o): o is string => typeof o === 'string');
.filter(o => typeof o === 'string');

if (possible.length === 0) {
return {};
Expand Down

0 comments on commit ab0b669

Please sign in to comment.