ngrok / ngrok-javascript

Embed ngrok secure ingress into your Node.js apps with a single line of code.
https://ngrok.com
Apache License 2.0
86 stars 17 forks source link

Explicitly annotate void return type #55

Closed d-fischer closed 1 year ago

d-fischer commented 1 year ago

This fixes the following error under the noImplicitAny TypeScript compiler flag:

node_modules/@ngrok/ngrok/index.d.ts:567:17 - error TS7010: 'consoleLog', which lacks return-type annotation, implicitly has an 'any' return type.

567 export function consoleLog(level?: String);
                    ~~~~~~~~~~
bobzilladev commented 1 year ago

Thanks!

d-fischer commented 1 year ago

Thanks for merging this so quickly! Can you also get this released on npm so this is actually usable in modern TS projects?

bobzilladev commented 1 year ago

Now released in version 0.5.1.