jsdoc support in editor

Created on 9 February 2024, 11 months ago

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.

💬 Support request
Status

Active

Version

10.2

Component
Javascript 

Last updated 4 days ago

Created by

🇩🇪Germany woldtwerk Stralibu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024