URL
getters (etc.) now returning ArrayBufferView
and not string
#1818
Labels
types
Related to @cloudflare/workers-types
In the latest
workers-types
release, some return types are being typed asArrayBufferView
instead ofstring
, such as the getters on URL objects.Reference: https://npmdiff.dev/@cloudflare%2fworkers-types/4.20240222.0/4.20240312.0/package/2023-07-01/index.d.ts/

Or full source diff: Cloudflare-Mining/Cloudflare-Datamining@f3eb65c
Previously worked:
Now it errors with:
Operator '+' cannot be applied to types 'ArrayBufferView' and 'ArrayBufferView'.ts(2365)
This also impacts getters on
URLSearchParams
. I would guess these unintentional changes are due to some of the changes with ada url implementation, but I'm not confident.The text was updated successfully, but these errors were encountered: