Class Provider

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(options: IOptions): Provider

Parameters

Returns

Provider

Properties

public sources: Array<any>

public stores: any

Methods

public add(name: string, options?: IOptions): Provider

Parameters

  • name: string
  • options?: IOptions optional

Returns

Provider

public argv(options?: IOptions): Provider

Parameters

Returns

Provider

public clear(key: string, callback?: ICallbackFunction): any

Parameters

Returns

any

public create(name: string, options: IOptions): IStore

Parameters

Returns

IStore

public defaults(options?: IOptions): Provider

Parameters

Returns

Provider

public env(options?: IOptions): Provider

Parameters

Returns

Provider

public file(name: string, options?: IFileOptions): Provider

Parameters

Returns

Provider

public file(options: IFileOptions): Provider

Parameters

Returns

Provider

public get(key: string, callback?: ICallbackFunction): any

Parameters

Returns

any

public init(options?: IOptions)

Parameters

public load(callback?: ICallbackFunction): any

Parameters

Returns

any

public loadSources(): any

Returns

any

public merge(key: string, value: any, callback?: ICallbackFunction): any

Parameters

Returns

any

public mergeSources(data: any)

Parameters

  • data: any

public overrides(options?: IOptions): Provider

Parameters

Returns

Provider

public remove(name: string)

Parameters

  • name: string

public reset(callback?: ICallbackFunction): any

Parameters

Returns

any

public save(value: any, callback?: ICallbackFunction): any

Parameters

Returns

any

public set(key: string, value: any, callback?: ICallbackFunction): any

Parameters

Returns

any

public use(name: string, options?: IOptions): Provider

Parameters

  • name: string
  • options?: IOptions optional

Returns

Provider