Skip to content

Commit

Permalink
Merge pull request #779 from micalevisk/master
Browse files Browse the repository at this point in the history
style: fix formatting by running `npm run format`
  • Loading branch information
kamilmysliwiec committed Dec 20, 2021
2 parents 5aa9145 + 74b4748 commit 2744e05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions lib/config.module.ts
Expand Up @@ -52,10 +52,8 @@ export class ConfigModule {
this.assignVariablesToProcess(validatedConfig);
} else if (options.validationSchema) {
const validationOptions = this.getSchemaValidationOptions(options);
const {
error,
value: validatedConfig,
} = options.validationSchema.validate(config, validationOptions);
const { error, value: validatedConfig } =
options.validationSchema.validate(config, validationOptions);

if (error) {
throw new Error(`Config validation error: ${error.message}`);
Expand Down
5 changes: 2 additions & 3 deletions lib/interfaces/config-factory.interface.ts
Expand Up @@ -2,6 +2,5 @@ import { ConfigObject } from '../types';

type ConfigFactoryReturnValue<T extends ConfigObject> = T | Promise<T>;

export type ConfigFactory<
T extends ConfigObject = ConfigObject
> = () => ConfigFactoryReturnValue<T>;
export type ConfigFactory<T extends ConfigObject = ConfigObject> =
() => ConfigFactoryReturnValue<T>;

0 comments on commit 2744e05

Please sign in to comment.