developit / developit/workerize-loader
Typescript types?
Abierto
question
- Lenguaje dominante
- JavaScript
- Estrellas
- 2.3k
- Forks
- 85
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Its a bit difficult to write a definition file... any ideas how to handle that?
Would be easier if the export was the factory function that returns the exported functions:
```js
export default function worker() {
function expensive(time) {
let start = Date.now(), count = 0
while (Date.now() - start < time) count++
return count
}
return {expensive}
}
```
then the types would be identical if the functions return promises.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.