31 lines
628 B
TypeScript
31 lines
628 B
TypeScript
export interface Config {
|
|
userValue: number
|
|
// Add other configuration properties here as needed
|
|
}
|
|
|
|
const defaultConfig: Config = {
|
|
userValue: 212, // Updated from 85
|
|
}
|
|
|
|
class ConfigService {
|
|
private config: Config
|
|
|
|
constructor() {
|
|
this.config = defaultConfig
|
|
}
|
|
|
|
getConfig(): Config {
|
|
return this.config
|
|
}
|
|
|
|
// You can add methods to dynamically update the configuration if needed
|
|
// For example:
|
|
// setConfig(newConfig: Config) {
|
|
// this.config = { ...this.config, ...newConfig };
|
|
// }
|
|
}
|
|
|
|
export { ConfigService }
|
|
export const configService = new ConfigService()
|
|
export default configService
|