Skip to content

Commit

Permalink
fix: Import URL and URLSearchParams in typings (#761)
Browse files Browse the repository at this point in the history
This change adds an explicit import for the URL and URLSearchParams typings from the Node standard library `'url'` module.

This was needed to prevent the TypeScript compiler from issuing errors when compiling against targets where URL and URLSearchParams are not ambiently available.

Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
  • Loading branch information
Max Dumas and xxczaki committed Apr 14, 2020
1 parent 766204f commit 736baf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/// <reference types="node" />

import { URL, URLSearchParams } from 'url';
import { Agent } from 'http';
import { AbortSignal } from './externals';

Expand Down

0 comments on commit 736baf3

Please sign in to comment.