dotfiles/common/hellcooling/config/global.d.ts
2023-10-31 12:40:38 +01:00

14 lines
448 B
TypeScript

export {};
import { EventEmitter } from 'events';
declare global {
const hh: {
emitter: EventEmitter;
constants: Record<string, string> & { categories: Record<string, string> };
// TODO: Maybe turn this into something that, based on the moduleName, can
// fetch an ext's actual config type and return that instead.
getModuleOptions: (moduleName: string) => Record<string, any>;
};
const wreq: (module: string) => any;
}