We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 309353d commit 8b1ac44Copy full SHA for 8b1ac44
src/store/redis.ts
@@ -2,7 +2,7 @@ import Redis from 'ioredis';
2
import Logger from '../util/logger.js';
3
import config from '../../config.json' with { type: 'json' };
4
5
-const validateData = (data: unknown): data is 'string' | 'number' | 'boolean' | 'object' => {
+const validateData = (data: unknown): data is string | number | boolean | object => {
6
if (typeof data === 'string') {
7
return data.length <= 10000;
8
} else if (typeof data === 'number') {
0 commit comments