Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2a310bb

Browse files
fix: fix types
1 parentbd8ad5f commit2a310bb

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"@leetnotion/leetcode-api",
3-
"version":"1.7.0",
3+
"version":"1.7.1",
44
"description":"Get user profiles, submissions, and problems on LeetCode.",
55
"type":"module",
66
"types":"lib/index.d.ts",

‎src/graphql/custom-problem.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ query problemsetQuestionList(
1212
) {
1313
total:totalNum
1414
questions:data {
15+
title
1516
difficulty
1617
topicTags {
1718
name

‎src/leetcode-types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export interface QueryParams {
1111
}
1212

1313
exportinterfaceLeetcodeProblem{
14+
title:string;
1415
difficulty:ProblemDifficulty;
1516
topicTags:TopicTag[];
1617
companyTagStats:OfficialCompanyTagStats|null;
@@ -20,8 +21,8 @@ export interface LeetcodeProblem {
2021
isPaidOnly:boolean;
2122
solution:LeetcodeSolution;
2223
questionId:string;
23-
likes:string;
24-
dislikes:string;
24+
likes:number;
25+
dislikes:number;
2526
stats:Stats|string;
2627
titleSlug:string;
2728
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp