UNPKG

typerinth

Version:

A TypeScript library for interacting with the Modrinth API.

12 lines (11 loc) 422 B
import { URL } from 'url'; import { Route } from '../Route'; import { User } from '../../interfaces/users'; import CacheManager from '../../util/CacheManager'; export default class GetUserRoute extends Route<User> { private userId; constructor(baseUrl: URL, ua: string | undefined, cacheManager: CacheManager, userId: string); getCacheKey(): string | null; getUrl(): URL; parseData(data: any): User; }