The internal cache.
The credential this LeetCodeCN instance is using.
Private
initializedUsed to ensure the LeetCodeCN instance is initialized.
Rate limiter
Static
prefixedUse GraphQL to query LeetCodeCN API.
Maybe you want to use /graphql/noj-go/
instead of /graphql/
.
Rest
...args: unknown[]Rest
...args: unknown[]Get submissions of a problem.
Optional
lang?: stringOptional
limit?: numberOptional
offset?: numberOptional
slug?: stringOptional
status?: stringGet a list of problems by tags and difficulty.
Optional
category?: stringOptional
filters?: { Optional
difficulty?: "EASY" | "MEDIUM" | "HARD"Optional
tags?: string[]Optional
limit?: numberOptional
offset?: numberGet detailed information about a submission.
The ID of the submission
Detailed information about the submission
const leetcode = new LeetCodeCN();
const detail = await leetcode.submissionDetail("123456789");
Generated using TypeDoc
If a credential is provided, the LeetCodeCN API will be authenticated. Otherwise, it will be anonymous.