Skip to content
This repository has been archived by the owner on Dec 24, 2021. It is now read-only.

Commit

Permalink
fix: response.json typings
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed May 16, 2021
1 parent ff18c80 commit a321ee1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ declare namespace orchid {
/**
* Converts the response body to a JSON object or array
*/
public json<T extends Record<string, unknown> | any[] = Record<string, unknown>>(): T;
public json<T extends object | any[] = Record<string, unknown>>(): T;

/**
* Converts the response body to a string
Expand Down
1 change: 0 additions & 1 deletion src/HttpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import { isObject } from '@augu/utils';
import { Client } from 'undici';
import { Util } from './utils';
import { URL } from 'url';
import { url } from 'node:inspector';

const { version } = require('../package.json');
const DEFAULT_USER_AGENT = `@augu/orchid (v${version}, https://github.com/auguwu/orchid)`;
Expand Down

0 comments on commit a321ee1

Please sign in to comment.