INNER CODE UNIT · TypeScript

getCheck

lingui/js-lingui · packages/cli/src/api/check/index.ts:72

export function getCheck(inputCheck: string): CheckDefinition {
  if (!isCheckName(inputCheck)) {
    throw new Error(`Unknown check ${inputCheck}.`)
  }

  return checkDefinitionsByName[inputCheck]
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…