function toPublicUser
toPublicUser(unnamed 0: User): PublicUser

Returns what anyone may see of user, without the hash and the email. Every route that sends another user's profile goes through it.

Parameters

unnamed 0: User

Return Type

Usage

import { toPublicUser } from "api/model/user.ts";