Skip to content

Commit

Permalink
fix: adjust the attributes associated with the config observer
Browse files Browse the repository at this point in the history
  • Loading branch information
ChoGathK committed Oct 16, 2022
1 parent 21667bb commit e945842
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/interface/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ export interface IObserver {
*
* @publicApi
*/
polling?: (...args: any[]) => void;
polling: (...args: any[]) => void;
/**
* Close the polling.
*
* @publicApi
*/
unPolling?: () => void;
unPolling: () => void;
}

export interface IConfig<T = any> {
Expand Down Expand Up @@ -149,15 +149,15 @@ export interface IConfigObserver extends IObserver {
notify: (key: string, value: any) => void;
}

export interface IConfigClient extends IObserver {
export interface IConfigClient<T = any> extends IObserver {
/**
* Load configuration.
*
* @param loader: IConfigLoader<T>
*
* @publicApi
*/
init: <T = any>(loader: IConfigLoader) => T | Promise<T>;
init: (loader: IConfigLoader) => T | Promise<T>;
/**
* Register the subscriber inside client by the key of configuration.
*
Expand Down

0 comments on commit e945842

Please sign in to comment.