Description |
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
// Disable anchor links | |
window.addEventListener('click', event => event.preventDefault(), false) | |
// Disable click eventlisteners | |
window.addEventListener("click", event => event.stopPropagation(), true) | |
// Enable design mode | |
document.designMode = "on" |
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
/** | |
* We call "variance" the direction of assignability between two types | |
* (in other words, which type is a subtype of the other). | |
* | |
* The same type can have a different variance in function of his position | |
* in a larger type, and this is what makes assignability in TypeScript | |
* not always straightforwards. | |
* | |
* There are 4 kinds of variance: | |
* - Covariant: if the type `a` is assignable to `a | b`. |
Moved to a repo at https://github.com/Geczy/coolify-migration
OlderNewer