immurl icon indicating copy to clipboard operation
immurl copied to clipboard

Missing `size` property

Open pascal-kuschkowitz opened this issue 10 months ago • 1 comments

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?

pascal-kuschkowitz avatar Apr 06 '24 10:04 pascal-kuschkowitz

@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

ameyer117 avatar Sep 08 '24 16:09 ameyer117