diff --git a/lib/helpers.ts b/lib/helpers.ts index 6e2ecce6..9904182d 100644 --- a/lib/helpers.ts +++ b/lib/helpers.ts @@ -51,9 +51,7 @@ export function isPathIgnored(filePath: string | null | undefined, ignoredGlob: } export function subscriptiveObserve( - object: { - [key: string]: any - }, + object: Record, eventName: string, callback: (...args: Array) => any, ): Disposable { diff --git a/lib/index.ts b/lib/index.ts index 1b51c83f..82c24f91 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -43,9 +43,7 @@ export function consumeUI(ui: UI): Disposable { } }) } -export function provideIndie(): { - [key: string]: any -} { +export function provideIndie(): Record { return indie => instance.addIndie(indie) } export function deactivate() {