Skip to content

Commit 8b1ac44

Browse files
RyanPotatCopilot
andauthored
fix: correct types
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 309353d commit 8b1ac44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/redis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Redis from 'ioredis';
22
import Logger from '../util/logger.js';
33
import config from '../../config.json' with { type: 'json' };
44

5-
const validateData = (data: unknown): data is 'string' | 'number' | 'boolean' | 'object' => {
5+
const validateData = (data: unknown): data is string | number | boolean | object => {
66
if (typeof data === 'string') {
77
return data.length <= 10000;
88
} else if (typeof data === 'number') {

0 commit comments

Comments
 (0)