mcp-openapi-schema-explorer
Version:
MCP OpenAPI schema explorer
12 lines • 436 B
JavaScript
/**
* Type guard to check if an object implements RenderableSpecObject.
* @param obj - The object to check.
* @returns True if the object implements RenderableSpecObject, false otherwise.
*/
export function isRenderableSpecObject(obj) {
return (typeof obj === 'object' &&
obj !== null &&
typeof obj.renderList === 'function' &&
typeof obj.renderDetail === 'function');
}
//# sourceMappingURL=types.js.map