Skip to content

Commit

Permalink
fix: interface define
Browse files Browse the repository at this point in the history
  • Loading branch information
ChoGathK committed Oct 14, 2022
1 parent 618879f commit 2115181
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
17 changes: 0 additions & 17 deletions src/common/interface/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,6 @@ export interface IConfigPoller {
}

export interface IConfigObserver extends Observer {
/**
* Contrasting configuration.
*
* @param key string The property of configuration.
* @param value any The configuration value.
*
* @publicApi
*/
contrast: (key: string, value: any) => void;
/**
* Register the subscriber inside client by the key of configuration.
*
Expand Down Expand Up @@ -149,14 +140,6 @@ export interface IConfigClient extends Observer {
* @publicApi
*/
init: <T = any>(loader: IConfigLoader) => T | Promise<T>;
/**
* Contrasting configuration.
*
* @param value any The configuration value.
*
* @publicApi
*/
contrast: (value: any) => void;
/**
* Register the subscriber inside client by the key of configuration.
*
Expand Down
2 changes: 1 addition & 1 deletion src/common/interface/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export interface IAsyncProviderFactory {
*
* @publicApi
*/
create: (...args: any[]) => FactoryProvider;
create?: (...args: any[]) => FactoryProvider;
}
8 changes: 0 additions & 8 deletions src/struct/provider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { FactoryProvider } from '@nestjs/common';

import { IAsyncProviderFactory } from '../common';

import { FactoryProviderStore } from './store';
Expand All @@ -15,10 +13,4 @@ export abstract class AsyncProviderFactory implements IAsyncProviderFactory {
public static getToken() {
return FactoryProviderStore.get(this.name);
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
public create(...args: any[]): FactoryProvider {
// do somethings ...
return null;
}
}

0 comments on commit 2115181

Please sign in to comment.