Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type 'URLPattern' has no construct signatures. #112

Open
MellKam opened this issue Apr 8, 2023 · 1 comment
Open

Type 'URLPattern' has no construct signatures. #112

MellKam opened this issue Apr 8, 2023 · 1 comment

Comments

@MellKam
Copy link

MellKam commented Apr 8, 2023

import { URLPattern } from "urlpattern-polyfill";

new URLPattern(); // Type 'URLPattern' has no construct signatures.

Codesandbox reproduction - https://codesandbox.io/p/sandbox/still-water-s2t9pg

Current type:

export const URLPattern: Types.URLPattern;

// I think we can change it to class declaration (it works for me)
export declare class URLPattern extends Types.URLPattern {}
@MellKam
Copy link
Author

MellKam commented Apr 8, 2023

I just noticed this pull request #111. I hope you will merge this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant