Add missing declarations for custom inspect methods

This commit is contained in:
Sam Vervaeck 2023-03-19 17:03:54 +01:00
parent 5c8a296cab
commit 36012be49a

View file

@ -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;