update type definition

This commit is contained in:
Pig Fang 2020-06-28 16:14:56 +08:00
parent 54fda11cb4
commit 9c5945235c
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2
2 changed files with 16 additions and 14 deletions

View File

@ -11,20 +11,21 @@ use Lorisleiva\LaravelSearchString\Concerns\SearchString;
use Tymon\JWTAuth\Contracts\JWTSubject;
/**
* @property int $uid
* @property string $email
* @property string $password
* @property string $nickname
* @property int $avatar
* @property int $score
* @property int $permission
* @property string $ip
* @property string $last_sign_at
* @property string $register_at
* @property bool $verified
* @property string $player_name
* @property Collection $players
* @property Collection $closet
* @property int $uid
* @property string $email
* @property string $password
* @property string $nickname
* @property string|null $locale
* @property int $avatar
* @property int $score
* @property int $permission
* @property string $ip
* @property string $last_sign_at
* @property string $register_at
* @property bool $verified
* @property string $player_name
* @property Collection $players
* @property Collection $closet
*/
class User extends Authenticatable implements JWTSubject
{

View File

@ -2,6 +2,7 @@ export type User = {
uid: number
email: string
nickname: string
user: string | null
score: number
avatar: number
permission: UserPermission