Type error: Cannot access ambient const enums when the '--isolatedModules' flag is provided.
83 | const playerResp = await searchDestinyPlayer($http, {
84 | displayName: encodeURIComponent(name),
> 85 | membershipType: BungieMembershipType.All,
| ^
86 | })
87 | if (!playerResp.Response.length) {
88 | console.log("Couldn't find player (retry?)")
I'm new to typescript, so I don't fully understand this compilation error:
but it led me here:
https://ncjamieson.com/dont-export-const-enums/