Skip to main content
Glama
index.d.ts1.76 kB
import { Breaker, Properties } from '../types'; export declare function eachArray<E = any>(obj: E[] | null | undefined, iterator: (value: E, key: number) => void | Breaker, thisArg?: any): void; /** * @param {*=} obj * @param {function(...*)=} iterator * @param {Object=} thisArg */ export declare function each(obj: any, iterator: (value: any, key: any) => void | Breaker, thisArg?: any): void; export declare const extend: (obj: Record<string, any>, ...args: Record<string, any>[]) => Record<string, any>; export declare const extendArray: <T>(obj: T[], ...args: T[][]) => T[]; export declare const include: (obj: null | string | Array<any> | Record<string, any>, target: any) => boolean | Breaker; /** * Object.entries() polyfill * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries */ export declare function entries<T = any>(obj: Record<string, T>): [string, T][]; export declare const trySafe: <T>(fn: () => T) => T | undefined; export declare const safewrap: <F extends (...args: any[]) => any = (...args: any[]) => any>(f: F) => F; export declare const safewrapClass: (klass: Function, functions: string[]) => void; export declare const stripEmptyProperties: (p: Properties) => Properties; export declare function _copyAndTruncateStrings<T extends Record<string, any> = Record<string, any>>(object: T, maxStringLength: number | null): T; export declare function isCrossDomainCookie(documentLocation: Location | undefined): boolean; export declare function find<T>(value: T[], predicate: (value: T) => boolean): T | undefined; export declare function addEventListener(element: Window | Document | Element | undefined, event: string, callback: EventListener, options?: AddEventListenerOptions): void;

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/sadiuysal/mem0-mcp-server-ts'

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