Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
udamir committed Sep 18, 2024
1 parent f235c26 commit 2965e4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const token = "perm:your-token"
const yt = YouTrack.client(baseUrl, token)

yt.Users.getCurrentUserProfile({
fields: ["login", "avatarUrl", "email", "fullName"]
fields: ["login", "avatarUrl", "email", "fullName"] as const
}).then((user) => {
// typeof user
// { $type: "User", login: string, avatarUrl: string, email: string, fullName: string }
Expand All @@ -40,7 +40,7 @@ yt.Users.getCurrentUserProfile({
})

yt.Tags.getTags({
fields: ["id", "name", { owner: ["login"]}]
fields: ["id", "name", { owner: ["login"]}] as const
}).then((tags) => {
// typeof tags
// Array<{ $type: "Tag", id: string, name: string, owner: { $type: "User", login: string } }>
Expand Down

0 comments on commit 2965e4b

Please sign in to comment.