You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NodeCache already has Typescript support, however, you always need to pass your type when using cache.get() for example.
Below you can find an example of a cache factory which provides a full typesafe interface while only providing the type once.
How it works? The type interface for the NodeCache already has dynamic types and I only wrapped it in a wrapper-function and enhanced the JSDoc comments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fixing a Broken Discord Taskbar Shortcut (and Customizing Its Icon)
Fixing a Broken Discord Taskbar Shortcut (and Customizing Its Icon)
Discord has a file called Update.exe which launches the latest version of the Discord client, or updates it if a new version is available. If you're a regular Windows user, you've probably pinned a shortcut to Update.exe on your taskbar for quick access.
The problem: this shortcut breaks more easily than you'd expect. Every time Discord updates, the version folder it points to changes, the icon can vanish, and the taskbar pin can end up pointing at nothing. This guide covers how to fix that, and how to customize the icon while you're at it.
Why the Shortcut Breaks
Discord installs updates into versioned folders like app-1.0.1211, app-1.0.1212, and so on. If you link directly to DiscordPTB.exe inside one of these folders, the link stops working the moment Discord updates and that folder is replaced.