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
@jflatow can you give us minimal reproduction steps?
Sure - put the following in a file, say example.ts:
import{SpecId}from"npm:@nomicfoundation/edr";Deno.test("does not compile",async()=>{console.log("latest",SpecId.Latest);});
Run:
$ deno test example.ts
Check file:///example.ts
TS2748 [ERROR]: Cannot access ambient const enums when 'isolatedModules' is enabled.
console.log("latest", SpecId.Latest);~~~~~~
at file:///example.ts:4:27
error: Type checking failed.
When trying to use e.g.
SpecId
, the enums exported are unusable in downstream packages that use Deno (orisolateModules
generally):when you try to reference a value of the enum.
The main enums in question are generated in this file: https://github.com/NomicFoundation/edr/blob/main/crates/edr_napi/index.d.ts
The text was updated successfully, but these errors were encountered: