fix: Import URL and URLSearchParams in typings (#761)

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>
This commit is contained in:
Max Dumas 2020-04-14 06:20:02 -04:00 committed by GitHub
parent 766204fede
commit 736baf300b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

1
index.d.ts vendored
View File

@ -9,6 +9,7 @@
/// <reference types="node" />
import { URL, URLSearchParams } from 'url';
import { Agent } from 'http';
import { AbortSignal } from './externals';