From ff8464b460970249b80ed717bd8031af7a787295 Mon Sep 17 00:00:00 2001 From: "Marc H. Weiner" Date: Sun, 28 May 2023 02:25:30 -0400 Subject: [PATCH] fix: broke declaration file --- src/global.d.ts | 1 - src/index.ts | 2 ++ src/writeConfFile.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 src/global.d.ts diff --git a/src/global.d.ts b/src/global.d.ts deleted file mode 100644 index 7ac3343..0000000 --- a/src/global.d.ts +++ /dev/null @@ -1 +0,0 @@ -interface Conf {} diff --git a/src/index.ts b/src/index.ts index 91909ca..78e3897 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,6 +4,8 @@ import {resolveConf} from './resolveConf'; import {loadConfFromFiles} from './loadConfFromFiles'; import {mergeConfs} from './mergeConfs'; +export interface Conf {} + export type Loader = (params: I) => O; export type LoaderDict = {[name: string]: Loader}; diff --git a/src/writeConfFile.ts b/src/writeConfFile.ts index db90557..e915ce4 100644 --- a/src/writeConfFile.ts +++ b/src/writeConfFile.ts @@ -18,7 +18,7 @@ export async function writeConfFile(): Promise { const ts = ` import {Conf} from "lambdaconf"; declare module "lambdaconf" { - export type Conf = { + export interface Conf = { ${props(defaultConfig)} } }