immurl
immurl copied to clipboard
Missing `size` property
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 & 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