Typing adjustment - 1357 (#1411)

* fix: typing adjustment
This commit is contained in:
Tiago Santos Da Silva 2021-10-04 17:56:32 -03:00 committed by GitHub
parent 1af58f6e61
commit c24888977c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ interface ArchiveHeader {
interface ArchiveLine {
type: string,
data: any,
data: unknown,
}
// This schema allows the expansion of additional line types in the future

View file

@ -28,7 +28,7 @@ class TelemetryClient {
this.user = user
}
trackEvent(category: string, event: string, props?: any): void {
trackEvent(category: string, event: string, props?: unknown): void {
if (this.telemetryHandler) {
const userId = this.user?.id
this.telemetryHandler.trackEvent(userId || '', '', category, event, props)

View file

@ -31,7 +31,7 @@ export function mockDOM(): void {
return range
}
}
export function mockMatchMedia(result: any): void {
export function mockMatchMedia(result: {matches: boolean}): void {
// We check if system preference is dark or light theme.
// This is required to provide it's definition since
// window.matchMedia doesn't exist in Jest.