-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typing fixes #16
Comments
The cause comes from the way files are handled around Deno and Node.js. See affected lines: Lines 9 to 10 in ac0ee89
In Deno, this is perfectly fine, in Node.js, the imports are not found. It would be required to instead reference the index of the v8 instead of the direct guild file, like so:
import { RESTPostAPIGuildsJSONBody } from "discord-api-types/rest/v8";
import { APIUnavailableGuild } from "discord-api-types/payloads/v8"; Inspect both of these inside an IDE and intellisense will prove it so. Also, Deno has the Pseudo SolutionThe transpiled (deno->node, not ts->js) Node version of these imports look like this: import { RESTPostAPIGuildsJSONBody } from "discord-api-types/rest/v8/guild";
import { APIUnavailableGuild } from "discord-api-types/payloads/v8/guild"; The directive to transform this would be to reference the parent folder of the - import { RESTPostAPIGuildsJSONBody } from "discord-api-types/rest/v8/guild";
+ import { RESTPostAPIGuildsJSONBody } from "discord-api-types/rest/v8";
- import { APIUnavailableGuild } from "discord-api-types/payloads/v8/guild";
+ import { APIUnavailableGuild } from "discord-api-types/payloads/v8"; Probably a build tag like |
No description provided.
The text was updated successfully, but these errors were encountered: