Fix `getRelationsForEvent` under TypeScript `strict` mode #9558
Fix getRelationsForEvent tsc strictness
b291130c
Use shared type for GetRelationsForEvent
331be20c
Fix lint
639ae6fa
Add alternative type
095347e1
getRelationsForEvent is not required
6db8927c
Relations are optional
1eabf6af
Reactions are optional
3060bba5
We expect relations in these tests
bc788c07
Add more protection if the eventID is not defined
f42971ba
Allow null too
6aec3efb
Better test typing
0f80d5a4
MadLittleMods
changed the title Fix `getRelationsForEvent` tsc strictness Fix `getRelationsForEvent` under TypeScript `strict` mode 3 years ago
User ID is not necessary unless something is selected
bab05e2c
It's okay to [].includes(null)
a5a61d20
Null is as good as undefined here
ae6dddc7
Null or undefined is good here
a51fb2c1
We have some expectations for the tests
0cef622e
The room and user can be undefined too
6caefb01
Protec
eb30722a
Reactions are optional
7aaf1076
Try match signatures
75582e71
Null or undefined
382c3800
More null or undefined
07089e75
Protec
847132e9
MadLittleMods
marked this pull request as ready for review 3 years ago
Fix typo (wrong variable)
cd98cef6
Remove optional params
a9094561
Fix up last maaaaybe relevant lint
25d0e362
Merge branch 'develop' into madlittlemods/strict-getRelationsForEvent
5b762181
Merge branch 'develop' into madlittlemods/strict-getRelationsForEvent
2467df2c
Merge branch 'develop' into madlittlemods/strict-getRelationsForEvent
8bf3d645
Merge branch 'madlittlemods/strict-getRelationsForEvent' of github.co…
0a18bba6
Merge branch 'develop' into madlittlemods/strict-getRelationsForEvent
d0e72585
turt2live
approved these changes
on 2022-11-22
turt2live
merged
2393510a
into develop 3 years ago
turt2live
deleted the madlittlemods/strict-getRelationsForEvent branch 3 years ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub