Skip to content

add URLPattern type in DOM or something lib? #1199

Open
@sinoon

Description

@sinoon

lib Update Request

Configuration Check

My compilation target is ESNEXT and my lib is the default.

Missing / Incorrect Definition

URLPattern is enabled by default in Chrome and Edge version 95 and above.

But TypeScript missing the definition

Sample Code

new window.URLPattern({
    pathname: '/:a/:b',
})

image

Documentation Link

doc: https://web.dev/urlpattern/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions