diff options
author | Dmitrii Kartashev <faithfinder@yandex.ru> | 2024-07-25 19:31:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-26 00:31:59 +0100 |
commit | 4437b9a55782ac4b213fb209f52378b839329c2a (patch) | |
tree | d8f4378413bf3ce476a9a8040d1973fea698851b /src/state/queries/threadgate.ts | |
parent | 50769b0b6fce97124ce23610bc81f4befd5224cb (diff) | |
download | voidsky-4437b9a55782ac4b213fb209f52378b839329c2a.tar.zst |
Boolean filter improvement alternative: TS upgrade (#4840)
* upgrade typescript and use new feature * fix: typing error
Diffstat (limited to 'src/state/queries/threadgate.ts')
-rw-r--r-- | src/state/queries/threadgate.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state/queries/threadgate.ts b/src/state/queries/threadgate.ts index c05d1f564..8b6aeba6c 100644 --- a/src/state/queries/threadgate.ts +++ b/src/state/queries/threadgate.ts @@ -33,6 +33,6 @@ export function threadgateViewToSettings( } return setting }) - .filter(<T>(n?: T): n is T => Boolean(n)) + .filter(n => !!n) return settings } |