Skip to main content
Glama
processContentDeclaration.ts680 B
import { logger } from '@intlayer/config/client'; import type { Dictionary } from '@intlayer/types'; import { resolveObjectPromises } from '../utils/resolveObjectPromises'; /** * Function to load, process the module and return the Intlayer Dictionary from the module file */ export const processContentDeclaration = async ( contentDeclaration: Dictionary ): Promise<Dictionary | undefined> => { try { const content = (await resolveObjectPromises( contentDeclaration.content )) as Dictionary['content']; return { ...contentDeclaration, content, } as Dictionary; } catch (error) { logger(error, { level: 'error', }); } };

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/aymericzip/intlayer'

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