mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
28 lines
513 B
TypeScript
28 lines
513 B
TypeScript
import Config from "./models/Config"
|
|
|
|
/**
|
|
* Stores the configuration of the library.
|
|
*/
|
|
export default class ConfigProvider {
|
|
|
|
/**
|
|
* @return {Config} Library config.
|
|
*/
|
|
public static getConfig(): Config {
|
|
return ConfigProvider.config
|
|
}
|
|
|
|
/**
|
|
* @param {Config} Library config.
|
|
*/
|
|
public static setConfig(config: Config) {
|
|
ConfigProvider.config = config
|
|
}
|
|
|
|
/**
|
|
* Library config.
|
|
* @type {Config}
|
|
*/
|
|
private static config: Config
|
|
}
|