You've already forked focalboard
mirror of
https://github.com/mattermost/focalboard.git
synced 2025-07-15 23:54:29 +02:00
committed by
GitHub
parent
1af58f6e61
commit
c24888977c
@ -9,7 +9,7 @@ interface ArchiveHeader {
|
|||||||
|
|
||||||
interface ArchiveLine {
|
interface ArchiveLine {
|
||||||
type: string,
|
type: string,
|
||||||
data: any,
|
data: unknown,
|
||||||
}
|
}
|
||||||
|
|
||||||
// This schema allows the expansion of additional line types in the future
|
// This schema allows the expansion of additional line types in the future
|
||||||
|
@ -28,7 +28,7 @@ class TelemetryClient {
|
|||||||
this.user = user
|
this.user = user
|
||||||
}
|
}
|
||||||
|
|
||||||
trackEvent(category: string, event: string, props?: any): void {
|
trackEvent(category: string, event: string, props?: unknown): void {
|
||||||
if (this.telemetryHandler) {
|
if (this.telemetryHandler) {
|
||||||
const userId = this.user?.id
|
const userId = this.user?.id
|
||||||
this.telemetryHandler.trackEvent(userId || '', '', category, event, props)
|
this.telemetryHandler.trackEvent(userId || '', '', category, event, props)
|
||||||
|
@ -31,7 +31,7 @@ export function mockDOM(): void {
|
|||||||
return range
|
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.
|
// We check if system preference is dark or light theme.
|
||||||
// This is required to provide it's definition since
|
// This is required to provide it's definition since
|
||||||
// window.matchMedia doesn't exist in Jest.
|
// window.matchMedia doesn't exist in Jest.
|
||||||
|
Reference in New Issue
Block a user