grantglidewell/jsnotes

View on GitHub
src/api/api.ts

Summary

Maintainability
A
0 mins
Test Coverage

Function api has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Invalid

export function api<T>(args: ApiInterface): Promise<T> {
  const { url, token, payload, method } = args;

  const requestOptions = {
    method,
Severity: Minor
Found in src/api/api.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status