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 d68d42f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 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
2 changes: 1 addition & 1 deletion lib/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class Linter {
this.registryMessages.deleteByLinter(linter)
}
// Indie Linter
addIndie(indie: { [key: string]: any }) {
addIndie(indie: Record<string, any>) {
this.registryIndieInit()
return this.registryIndie.register(indie, 2)
}
Expand Down

0 comments on commit d68d42f

Please sign in to comment.