Add missing declarations for custom inspect methods
This commit is contained in:
parent
5c8a296cab
commit
36012be49a
1 changed files with 6 additions and 1 deletions
|
@ -1,8 +1,13 @@
|
|||
|
||||
import path from "path"
|
||||
import stream from "stream"
|
||||
import { inspect } from "util";
|
||||
|
||||
export const isDebug = true;
|
||||
export const isDebug = process.env['NODE_ENV'] === 'development';
|
||||
|
||||
export const customInspectSymbol = Symbol.for('nodejs.util.inspect.custom')
|
||||
|
||||
export type InspectFn = typeof inspect;
|
||||
|
||||
export function first<T>(iter: Iterator<T>): T | undefined {
|
||||
return iter.next().value;
|
||||
|
|
Loading…
Reference in a new issue