Something went wrong. Try again.
TypeScript client for accessing TLE Community.
Something went wrong. Try again.
1234567891011121314151617181920import Lacuna from '../lacuna';import { LacunaConfig } from '../types';import { ensureTrailingSlash } from './util';
class Config { lacuna: Lacuna;
serverUrl = 'https://meanjin-one.tlecommunity.com/'; apiKey = 'anonymous';
constructor(lacuna: Lacuna, config: LacunaConfig) { this.lacuna = lacuna;
if (config.serverUrl) this.serverUrl = ensureTrailingSlash(config.serverUrl); if (config.apiKey) this.apiKey = config.apiKey; }}
export default Config;