diff --git a/src/current.ts b/src/current.ts index c13cd1c..7a61372 100644 --- a/src/current.ts +++ b/src/current.ts @@ -2,6 +2,7 @@ import { camelize } from "./util" type CurrentValueObject = { [key: string]: string } type CurrentValue = string | CurrentValueObject +type CurrentType = { [key: string]: CurrentValue | undefined } const currentProxy = { get(_target: object, propertyName: string): CurrentValue { @@ -25,7 +26,7 @@ const currentProxy = { }, } -export const Current = new Proxy({}, currentProxy) +export const Current: CurrentType = new Proxy({}, currentProxy) export const config = { prefix: "current", } diff --git a/tsconfig.json b/tsconfig.json index c1eaa6d..f9a62c4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,5 +17,8 @@ "typeRoots": [ "./node_modules/@types" ] - } + }, + "include": [ + "src/**/*" + ], }