import { UserModel } from "@creature-chess/auth-server" ; import { SanitizedUser } from "@creature-chess/models" ; export const sanitize = ( user ) : SanitizedUser => { const { id , nickname , stats , registered } = user ; return { id , nickname , stats , registered } ; } ;