-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Error of type and avoiding an error of build in a release #107
Comments
@3C0D I don't understand https://github.com/3C0D/obsidian-explorer-shortcuts/actions/runs/13169628607/job/36757438385 Fails
Locally it also fails // @ts-expect-error
tree.handleDeleteSelectedItems(e); It fails because Please elaborate what do you expect us to fix in |
The handleDeleteSelectedItems function in Obsidian’s code requires a KeyboardEvent argument to work (without it, files don’t delete). But the current typings declare it as handleDeleteSelectedItems(): void (no arguments). This creates indeed two problems:
The fix here would be: Let me know if you need more details. |
That's ironical, as with your PR 4 months ago, the missing argument was added: 37d8a08 I guess you have an outdated library version locally but GitHub action fetches the latest library version, and that causes the difference in behavior |
I did a similar pull request there. But I forgot to add the previous one |
Ah ok I didn't see this one. But strange fact I'm using obsidian-typing: latest |
OK I see I didn't do a npm i since a long time maybe. edit: rather npm update |
I honestly avoid And from time to time I call |
Added in https://github.com/Fevol/obsidian-typings/releases/tag/2.19.0 |
Thank you so much for your help with this! Your workaround worked perfectly, and the release is now live. Thanks again for your support! |
I don't know why, but when I build under GitHub Actions, simple errors become much more restrictive (as a @ts-ignore), whereas a local build doesn't cause any issues. (repo https://github.com/3C0D/obsidian-explorer-shortcuts/releases/tag/1.3.4)
I had to work around the problem by adding:
I had already pushed a similar function before, where a required argument was missing. So this function also needs an argument; otherwise, the file won't be deleted. (KeyboardEvent)
The text was updated successfully, but these errors were encountered: