You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TypeScript compiler throws the following error with code TS2739: Type 'URL' is missing the following properties from type 'URL': createObjectURL, revokeObjectURL, canParse
Additional information
I noticed that the mentioned properties all happen to be static methods; I took a look and found that the Bun types expose them as regular instance methods, which is inaccurate.
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.2.2+c1708ea6a
What platform is your computer?
Linux 6.13.3-2-cachyos x86_64 unknown
What steps can reproduce the bug?
When attempting to assign a value to an existing variable of type
URL
usingnew URL()
, the resulting types conflict with each other.Steps to reproduce:
@types/bun
,@tsconfig/node20
, and@types/node
packages to a projecttsc
:What is the expected behavior?
The build should succeed without any errors.
What do you see instead?
The TypeScript compiler throws the following error with code TS2739:
Type 'URL' is missing the following properties from type 'URL': createObjectURL, revokeObjectURL, canParse
Additional information
I noticed that the mentioned properties all happen to be static methods; I took a look and found that the Bun types expose them as regular instance methods, which is inaccurate.
The text was updated successfully, but these errors were encountered: