Alan Rezende

alanrezende

TypeScript Error – Type NodeListOf<Element> must have a Symbol.iterator() method that returns an iterator

Related to:: TypeScript main.ts:3 ⛔️ error TS2488: Type 'NodeListOf<Element>' must have a '[Symbol.iterator]()' method that returns an iterator. To illustrate the error, consider the following code from my Obsidian Plugin: let pre = document.querySelectorAll(“pre:not(.frontmatter)”); val.plugins.commandLine.resizeElements( […pre].filter(i => i.classList.contains(‘command-line’)) ); In this code, the val.plugins.commandLine.resizeElements function is used to resize an array of elements that have …

TypeScript Error – Type NodeListOf<Element> must have a Symbol.iterator() method that returns an iterator Read More »

Supervisor Basic Cheat Sheet

Related to:: Linux – SysAdmin These commands will help you manage Supervisor for routine tasks. status stop all start all restart all reload – status – stop all – start all – restart all – reload supervisorctl status supervisorctl status supervisorctl status Status supervisorctl status laravel-worker:laravel-worker_00 RUNNING pid 22, uptime 0:06:20 laravel-worker:laravel-worker_01 RUNNING pid 23, …

Supervisor Basic Cheat Sheet Read More »