I
I
Ivan Nikolaevich2019-03-02 20:59:30
JavaScript
Ivan Nikolaevich, 2019-03-02 20:59:30

How to reference class/object in downloaded package via JSDoc?

I would like to highlight the existing methods / properties of the module that is in NPM.
Let's take socket.io as an example.
NDNmMz.png
You can somehow mark up the code through jsDoc so that the IDE:
a) does not swear at the existing methods / properties of the passed object
b) you can go to the method / property in the npm package

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Makarov, 2019-03-25
@MDiMaI666

/** @param {import('socketio').Socket} socket */

W
WebDev, 2016-10-13
@kirill-93

Solved with this query

SELECT `artists`.`id`, IF(LOCATE('cat', `name`) = 0, 10000, LOCATE('cat', `name`)) AS `locate_index`
FROM `artists` 
WHERE (`name` LIKE '%cat%' OR REPLACE (`name`, '$ ', 's' LIKE '%cat%' )) 
ORDER BY `locate_index`

R
romy4, 2016-10-13
@romy4

Вам нужен collate для таблицы не как обычно utf8_general, а utf8_unicode
LIKE не находит синонимы, а механизм локализации для general убирает все диекриты и прочие крышечки.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question