Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types for pino-abstract-transport #28

Closed
glensc opened this issue Oct 21, 2021 · 2 comments
Closed

Types for pino-abstract-transport #28

glensc opened this issue Oct 21, 2021 · 2 comments

Comments

@glensc
Copy link

glensc commented Oct 21, 2021

Can't be used in a TypeScript project:

➔ tsc
src/PinoSentryTransport.ts:1:19 - error TS7016: Could not find a declaration file for module 'pino-abstract-transport'. 'node_modules/pino-abstract-transport/index.js' implicitly has an 'any' type.
  Try `npm install @types/pino-abstract-transport` if it exists or add a new declaration (.d.ts) file containing `declare module 'pino-abstract-transport';`

1 import build from 'pino-abstract-transport';
                    ~~~~~~~~~~~~~~~~~~~~~~~~~
➔ npm install @types/pino-abstract-transport
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2fpino-abstract-transport - Not found
npm ERR! 404
npm ERR! 404  '@types/pino-abstract-transport@*' is not in this 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.
@mcollina
Copy link
Member

cc @kibertoad

@rasmuslp
Copy link

This seems to have been added in #30 / 0.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants