Options
All
  • Public
  • Public/Protected
  • All
Menu

codewars-node-api

Index

Type aliases

CodeChallangeRank: CodeChallengeRank

Alias of CodeChallengeRank

see

CodeChallengeRank

deprecated

use CodeChallengeRank, will be removed in v2

CodewarsErrorCode: typeof CODEWARS_ERROR_CODES[number]

The type of http response codes the codewars api can return.

Variables

CODEWARS_ERROR_CODES: readonly [400, 401, 403, 404, 405, 406, 422, 429, 500, 503] = ...

The array of http response error-codes the codewars api can return.

Functions

  • createCodewarsError(code: 400 | 401 | 403 | 404 | 405 | 406 | 422 | 429 | 500 | 503): undefined | CodewarsError
  • isCodewarsErrorCode(code: unknown): code is 400 | 401 | 403 | 404 | 405 | 406 | 422 | 429 | 500 | 503
  • Type-guard that can be used to verify if the given code is a codewars http response codes.

    Parameters

    • code: unknown

    Returns code is 400 | 401 | 403 | 404 | 405 | 406 | 422 | 429 | 500 | 503

Generated using TypeDoc