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

Missing size property #27

Open
pascal-kuschkowitz opened this issue Apr 6, 2024 · 1 comment
Open

Missing size property #27

pascal-kuschkowitz opened this issue Apr 6, 2024 · 1 comment

Comments

@pascal-kuschkowitz
Copy link

Upon reviewing this code in the tutorial:

  const url = new ImmutableURL('https://example.com');
  const newUrl2 = url.set(
    'searchParams',
    url.searchParams.append('q', 'search-term').set('foo', 'fuz').sort()
  );

I got the error:

Argument of type 'ImmutableURLSearchParams' is not assignable to parameter of type 'URLSearchParams'.
  Property 'size' is missing in type 'ImmutableURLSearchParams' but required in type 'URLSearchParams'.ts(2345)

Is this project still active?

@ameyer117
Copy link

@pascal-kuschkowitz & others - since this project hasn't been updated in 3 years, I created a fork that is maintained that fixes this issue. You can find it here -> https://www.npmjs.com/package/immutable-url

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

2 participants