INNER CODE UNIT · TypeScript

NO_OP

beeequeue/yuna · src/utils/index.ts:30

export const NO_OP = () => {
  /* no-op */
}

export type RequestSuccess<B extends {} | null> = {
  status: 200 | 204
  ok: true
  body: B
} & Response

export type RequestError<B extends object | null> = {
  status: 200 | 400 | 401 | 404 | 500 | 502 | 429
  ok: false
  body: B
  error: HTTPError
} & Response

export type RequestResponse<D extends object = any, E extends object = any> =

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…