tim-smart / dfx

A Discord library for effect-ts
MIT License
43 stars 1 forks source link

Type inference error #4

Closed ethanniser closed 22 hours ago

ethanniser commented 23 hours ago

starting from this line: https://github.com/tim-smart/dfx/blob/main/src/gateway.ts#L27

The inferred type of 'DiscordLive' cannot be named without a reference to 
'.pnpm/dfx@0.101.1_@effect+platform@0.65.1_@effect+schema@0.72.3_effect@3.9.0__effect@3.9.0__effect@3.9.0/node_modules/@effect/platform/HttpClient'. 
This is likely not portable. A type annotation is necessary.
image

leads to any in requirements when importing

tim-smart commented 22 hours ago

Try the latest release