Skip to main content
Glama
deleonio
by deleonio
common.ts618 B
export const isObject = (value: unknown): boolean => typeof value === 'object' && value !== null; export const isString = (value: unknown, minLength = 0): boolean => typeof value === 'string' && value.length >= minLength; export const isStyle = (style?: Record<string, string>): boolean => { if (typeof style === 'object' && style !== null) { for (const property in style) { if (isString(property, 1) === false) { return false; } } } else { return isString(style, 1); } return true; }; /** * Fix event instance for state changes. */ export const STATE_CHANGE_EVENT = new Event('StateChange');

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/deleonio/public-ui-kolibri'

If you have feedback or need assistance with the MCP directory API, please join our Discord server