dotfiles/common/hellcooling/config/global.d.ts

15 lines
448 B
TypeScript
Raw Permalink Normal View History

export {};
2023-10-31 09:52:26 +00:00
import { EventEmitter } from 'events';
declare global {
const hh: {
2023-10-31 09:52:26 +00:00
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>;
};
2023-10-31 11:40:38 +00:00
const wreq: (module: string) => any;
}