- isParsedMF2(
input: unknown,
): input is Readonly<
{
properties: { [key: string]: any };
type: ("h-card" | "h-cite" | "h-entry" | "h-event")[];
},
> Returns input is Readonly<
{
properties: { [key: string]: any };
type: ("h-card" | "h-cite" | "h-entry" | "h-event")[];
},
>
Validates whether input is MF2 JSON or not.
NOTE: I am not sure whether a MF2 JSON must include a
type
property. If not provided, I think MF2 JSON should be treated as having type=["entry"].