According to the documentation the track.details property is object | null
However, the typings for Keen's instance declare track.details to be always of type TrackDetails. This forces us to override types or use TS directives (such as @ts-expect-error) to handle null cases for the details property.
According to the documentation the
track.details
property isobject | null
However, the typings for Keen's instance declare
track.details
to be always of typeTrackDetails
. This forces us to override types or use TS directives (such as@ts-expect-error
) to handlenull
cases for thedetails
property.