Creates a type guard that matches unknown timeline events by event_type
and narrows the data field to T.
Unknown events are eagerly parsed by the classifier, so the data field
already contains the parsed payload (or null when unparseable). The
returned guard checks both kind === "unknown" and the event_type string,
giving you a fully typed <T> without manual
parsing.
Creates a type guard that matches unknown timeline events by
event_typeand narrows thedatafield toT.Unknown events are eagerly parsed by the classifier, so the
datafield already contains the parsed payload (ornullwhen unparseable). The returned guard checks bothkind === "unknown"and theevent_typestring, giving you a fully typed <T> without manual parsing.