Newer
Older
percord / src / schema / User.ts
@Flam3rboy Flam3rboy on 29 May 2021 273 bytes :art: reformat
import { Length } from "../util/instanceOf";

export const UserModifySchema = {
	$username: new Length(String, 2, 32),
	$avatar: String,
	$bio: new Length(String, 0, 190)
};

export interface UserModifySchema {
	username?: string;
	avatar?: string | null;
	bio?: string;
}