Skip to content

URLSearchParams needs keys and values #38139

@mjackson

Description

@mjackson

TypeScript Version: 3.8.3

Search Terms: URLSearchParams

Code

console.log(new URLSearchParams().keys())
// or
console.log(new URLSearchParams().values())

Expected behavior:

No error

Actual behavior:

Error: Property 'keys' does not exist on type 'URLSearchParams'

Playground Link: https://www.typescriptlang.org/play/#code/MYewdgziA2CmB00QHMAUZYHcAEBVASgDIDKsAhgE7AAWACpWQLYSoCU8A1rAJ4uusBYAFAB6EdhAVhoSDARI0GHARLkqdBszbwAbmWgBXWH1ZA

Related Issues: None

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions