Skip to content

Commit

Permalink
chore: use Record<string, any> instead of the verbose syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 4, 2021
1 parent 08dfff7 commit 9b05351
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions lib/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ export function isPathIgnored(filePath: string | null | undefined, ignoredGlob:
}

export function subscriptiveObserve(
object: {
[key: string]: any
},
object: Record<string, any>,
eventName: string,
callback: (...args: Array<any>) => any,
): Disposable {
Expand Down
4 changes: 1 addition & 3 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ export function consumeUI(ui: UI): Disposable {
}
})
}
export function provideIndie(): {
[key: string]: any
} {
export function provideIndie(): Record<string, any> {
return indie => instance.addIndie(indie)
}
export function deactivate() {
Expand Down

0 comments on commit 9b05351

Please sign in to comment.