Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

User

import { User } from "https://raw.githubusercontent.com/ent2/deno-playentry/main/mod.ts";

엔트리 유저를 나타낸다.

class User implements LwInterface<UserConstructor> {
constructor(info: UserConstructor);
@Lw("getInfo")
avatarURL: _LwProp<"avatarURL">;
 
@Lw("getInfo")
description: _LwProp<"description">;
 
@Lw("getInfo")
id: _LwProp<"id">;
 
@Lw("getInfo")
language: _LwProp<"language">;
 
@Lw("getInfo")
role: _LwProp<"role">;
 
username;
 
async findProjects(options?: {
sort?:
| "updated"
| "recent"
| "complexity"
| "staffPicked"
| "childCnt"
| "recentLikeCnt";
rows?: number;
}
);
async getInfo();
}

§Implements

§
LwInterface<UserConstructor>
[src]

§Constructors

§
new User(info: UserConstructor)
[src]

§Properties

§
avatarURL: _LwProp<"avatarURL">
[src]

§Decorators

§
@Lw("getInfo")
[src]
§
description: _LwProp<"description">
[src]

§Decorators

§
@Lw("getInfo")
[src]
§
id: _LwProp<"id">
[src]

§Decorators

§
@Lw("getInfo")
[src]
§
language: _LwProp<"language">
[src]

§Decorators

§
@Lw("getInfo")
[src]
§
role: _LwProp<"role">
[src]

§Decorators

§
@Lw("getInfo")
[src]
§
username
[src]

§Methods

§
findProjects(options?: {
sort?:
| "updated"
| "recent"
| "complexity"
| "staffPicked"
| "childCnt"
| "recentLikeCnt";
rows?: number;
}
)
[src]

유저가 제작한 작품들의 목록을 가져온다. sort 옵션이 "complexity""staffPicked"인 경우 일부 작품이 포함되지 않는다.

§
getInfo()
[src]

유저의 닉네임(아이디)으로 정보를 불러온다. 유저가 존재하지 않는다면 undefined를 반환한다.