Skip to content
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

[Question] TS2367 [ERROR] when trying to cache harmony. Am I doing something wrong? #176

Closed
patgoat opened this issue Jun 11, 2021 · 3 comments
Labels
question ❓ Further information is requested

Comments

@patgoat
Copy link

patgoat commented Jun 11, 2021

What question do you have?
Why is this error occurring? Have I done something wrong?

/*
deps.ts
*/
import { Client, Message} from 'https://deno.land/x/harmony/mod.ts';

then I run deno cache

error: TS2367 [ERROR]: This condition will always return 'false' since the types 'SlashCommandOptionType' and '0' have no overlap.
      type === 0 || type === 1
      ~~~~~~~~~~
    at https://deno.land/x/harmony@v2.0.0-rc2/src/interactions/slashCommand.ts:117:7
@patgoat patgoat added the question ❓ Further information is requested label Jun 11, 2021
@MierenManz
Copy link
Contributor

The recent update of deno included the new version of TypeScript.
Which broke the code for rc2.
This is already fixed on Github main branch, just not released to deno.land/x

In the meantime you could either downgrade back to deno 1.10 or use the github main branch

@patgoat
Copy link
Author

patgoat commented Jun 11, 2021

Alright thanks, I'm going to use the main branch now

@patgoat patgoat closed this as completed Jun 12, 2021
@MierenManz
Copy link
Contributor

@DjDeveloperr or @Helloyunho
Do we want to keep this issue open until the fix pas landed on stable?
Just for visibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question ❓ Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants