Skip to content

Comandos úteis

flowingts / timer

Função: timer() ​

timer(opts?): <This, Args, Return>(target, context) => (this, ...args) => Return

Definido em: src/decorators/log.ts:12

Mede o tempo do handler, inclusive de handlers async (B-04). Uso: @timer() ou @timer({ log: (msg, ms) => logger.info({ ms }, msg) }).

Parâmetros ​

opts? ​

TimerOptions = {}

Retorna ​

<This, Args, Return>(target, context) => (this, ...args) => Return

Licença ISC.