Problem/Motivation
The javascript api is nicely typed. However I do not know how to leverage this in the editor.
For the new once module this would to:
declare global {
var once: typeof import('./web/core/assets/vendor/once/once').default
}
export {}
I can't find any Solution to properly include the Drupal namespace itself. Seems like jsdoc and iife don't play well together?
Proposed resolution
Potentially update https://www.drupal.org/docs/develop/development-tools/editors-and-ides/c...
with a how to.