Skip to content

Commit

Permalink
Use DeepReadOnly in ConfigExtender
Browse files Browse the repository at this point in the history
  • Loading branch information
alcuadrado committed Sep 11, 2019
1 parent b3231bc commit 25ccf16
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/buidler-core/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { EventEmitter } from "events";
import { DeepPartial, Omit } from "ts-essentials";
import { DeepPartial, DeepReadonly, Omit } from "ts-essentials";

import { Analytics } from "./internal/cli/analytics";
import * as types from "./internal/core/params/argumentTypes";

// Begin config types
Expand Down Expand Up @@ -127,7 +126,7 @@ export type EnvironmentExtender = (env: BuidlerRuntimeEnvironment) => void;

export type ConfigExtender = (
config: ResolvedBuidlerConfig,
userConfig: BuidlerConfig
userConfig: DeepReadonly<BuidlerConfig>
) => void;

export interface TasksMap {
Expand Down

0 comments on commit 25ccf16

Please sign in to comment.