We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39b52c1 commit 5249b4eCopy full SHA for 5249b4e
1 file changed
src/shadow/proc-log.ts
@@ -41,13 +41,13 @@ function tryRequire<T extends keyof RequireKnownModules>(
41
return undefined
42
}
43
44
-type GetLoggerReturnType =
+export type Logger =
45
| typeof import('npmlog')
46
| typeof import('proc-log')
47
| undefined
48
49
-let _log: GetLoggerReturnType | {} = UNDEFINED_TOKEN
50
-export function getLogger(): GetLoggerReturnType {
+let _log: Logger | {} = UNDEFINED_TOKEN
+export function getLogger(): Logger {
51
if (_log === UNDEFINED_TOKEN) {
52
_log = tryRequire(
53
[
@@ -59,5 +59,5 @@ export function getLogger(): GetLoggerReturnType {
59
<'npmlog'>path.join(npmNmPath, 'npmlog/lib/log.js')
60
)
61
62
- return <GetLoggerReturnType>_log
+ return <Logger>_log
63
0 commit comments