Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
69 views

I'm trying to extends a class and assign a different value for a property that has been already defined in the parent class. The new value is from the allowed values: /** @typedef {'a'|'b'|'c'} Letter ...
HankMoody's user avatar
  • 3,183
1 vote
1 answer
110 views

Suppose I have a function like this: function useFrobnaticator() { return (stringToFrobnicate: string) => { console.log(stringToFrobnicate.length > 20 ? '(too long)' : stringToFrobnicate); ...
oliver's user avatar
  • 6,936
1 vote
0 answers
74 views

I have this code /** * One */ function debounce(callback: AnyFunction, immediate?: boolean): void /** * Two */ function debounce(callback: AnyFunction, options: Options, immediate?: boolean): void ...
Qwerty's user avatar
  • 32.7k
Tooling
0 votes
2 replies
75 views

From PHP you can navigate to VUE component from Inertia call. I have paid Laravel Idea plugin installed. But I can not navigate from VUE component to PHP controller or it's method. In VUE file I have ...
user2604188's user avatar
0 votes
0 answers
44 views

I’ve noticed that GJS documentation uses DevDocs. I’m trying to understand the documentation pipeline for GJS: Does it read comments from the source code and generate documentation automatically? Do ...
Ethan Martin's user avatar
2 votes
1 answer
128 views

I'm not sure how to get the code snippet for this question as I don't know how to specify the filename of the JavaScript file, but here goes. I have a JavaScript file, "scripts.js" that ...
Mike McCollister's user avatar
0 votes
0 answers
97 views

When I create a type declaration file (.d.ts) from a TypeScript file that includes JSDoc, the final type declaration file still contains the JSDoc. This is helpful, because the user of the package not ...
Tobias Reich's user avatar
  • 2,044
1 vote
0 answers
128 views

Currently, VSCode only recognizes JSDoc @typedef declarations in files that are open. For example, if I have a @typedef comment in a file that is NOT currently open in VSCode, VSCode thinks the type ...
user3163495's user avatar
  • 4,104
1 vote
1 answer
150 views

I have a React component that takes props a, b, and any other arbitrary value the user wants to add on top: /** * @param {object} props * @param {string} props.a * @param {number} props.b */ ...
Devildude4427's user avatar
1 vote
2 answers
90 views

When exporting my component like this export default React.memo(MyComponent); and using it somewhere else like this <MyComponent></MyComponent> it will not show the jsdoc documentation of ...
User9132's user avatar
  • 1,057
2 votes
0 answers
155 views

I'm working on a library, and would like some functionality that requires users (meaning the user of the library) to extend a class. On that class will be a method that the user should override, and ...
MilesZew's user avatar
  • 707
1 vote
1 answer
70 views

I want to be able to define objects as: /**@type{CheckData}**/ object1 = {check:true} /**@type{CheckData}**/ object2 = {check:false, data: 'Why?'} While I can use this @typedef with success: /** * @...
Nertan Lucian's user avatar
0 votes
0 answers
29 views

I've got a base class with some static getters that need to be overwritten by the inheriting classes. class BaseClass { /** * @abstract * @returns {string} */ static get prefix()...
claudekennilol's user avatar
0 votes
1 answer
152 views

Working with React 17 & Vite v5 & VS Code IDE We want to use alias when importing components for ease of use. But when we use it, the jsDoc popup doesn't show any data. How to configure jsDoc ...
ShanRon's user avatar
  • 23
0 votes
1 answer
50 views

I have a message object that can have all kinds of keys, some of which I know, some of them I can't know. // @ts-check /** * @typedef {Object} Message * @property {String} sender * @property {...
user avatar

15 30 50 per page
1
2 3 4 5
119