UNPKG

mcp-openapi-schema-explorer

Version:
12 lines 436 B
/** * 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