Após a importação do consign, ele não 'funciona' pois pede a para importar o @types/consign, porém, quando tento importar da erro e não estou sabendo identificar a causa.
const express = require('express');
const bodyParser = require('body-parser');
const consign = require('consign');
module.exports = () => {
const app = express();
consign().include('controllers').into(app);
return app;
}
Erro: npm ERR! 404 '@types/consign@latest' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in:
Try npm install @types/consign
if it exists or add a new declaration (.d.ts) file containing `declare module 'consign';