Type guard to check if a value is a RequestFrame.
Value to check
True if the value is a RequestFrame
const data = JSON.parse(someJson);if (isRequestFrame(data)) { console.log("Method:", data.method); // TypeScript knows it's RequestFrame} Copy
const data = JSON.parse(someJson);if (isRequestFrame(data)) { console.log("Method:", data.method); // TypeScript knows it's RequestFrame}
Type guard to check if a value is a RequestFrame.