Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294468

jsdoc support in editor

$
0
0

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.


Viewing all articles
Browse latest Browse all 294468

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>