chore: resolve lint errors

This commit is contained in:
Dragory 2024-01-27 14:21:32 +02:00
parent 59c5176cbd
commit 77ab2718e7
No known key found for this signature in database
17 changed files with 16 additions and 40 deletions

View file

@ -150,13 +150,6 @@ export type GroupDMInvite = Invite & {
type: typeof ChannelType.GroupDM;
};
function isBoundedString(str: unknown, min: number, max: number): str is string {
if (typeof str !== "string") {
return false;
}
return (str.length >= min && str.length <= max);
}
export function zBoundedCharacters(min: number, max: number) {
return z.string().refine(str => {
const len = [...str].length; // Unicode aware character split