Skip to main content
Glama
example.ts578 B
// TypeScript test file interface User { id: number; name: string; email: string; } type Status = 'active' | 'inactive' | 'pending'; class UserService { private users: User[] = []; async getUser(id: number): Promise<User | undefined> { return this.users.find(u => u.id === id); } addUser(user: User): void { this.users.push(user); } } function genericFunction<T>(value: T): T { return value; } enum Role { Admin = 'ADMIN', User = 'USER', Guest = 'GUEST' } export { UserService, User, Status, Role };

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/FarhanAliRaza/claude-context-local'

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