microsoft / microsoft/TypeScript
@template is lost when importing method
Aperta
@minestarks ci sta già lavorando.
Dal 26/2/2020.
Needs Investigation
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.3k
- Merge medio
- 2g 4h
- PR unite (30g)
- 132
Descrizione
TypeScript Version: 3.6.3
Search Terms:
template
Code
const $indicatrix = require('./indicatrix')
/**
* Will print the loading text and refresh the CLI line to show the ellipsis while the promise is loading.
* @param {string} text The text to display in the CLI.
* @param {!Promise<T>|function(...*): !Promise<T>} promise The promise or an async function that returns the promise.
* @return {Promise<T>}
* @template T
*/
function indicatrix(text, promise, options) {
return $indicatrix(text, promise, options)
}
module.exports = indicatrix
import this from another file
/**
* @type {_indicatrix.indicatrix}
*/
async function $indicatrix(text, promise, options = {}) {
// implementation ...
}
/**
* @suppress {nonStandardJsDocs}
* @typedef {import('..')} _indicatrix.indicatrix
*/
Expected behavior:
supposed to be like in the original location

Actual behavior:
the template bit is lost

Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.