import { catcher } from './handleError' import g from 'gulp' import p from './paths'; declare global { var catch_error: typeof catcher; var paths: typeof p; var gulp: typeof g; export module NodeJS { interface Global { catch_error: typeof catcher; paths: typeof paths; gulp: typeof gulp; } } } export const inject = () => { global.catch_error = catcher global.paths = p global.gulp = g; } console.log(p)