Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 548 Bytes
import { extendEnvironment } from "@nomiclabs/buidler/config";
import { lazyObject } from "@nomiclabs/buidler/plugins";
export class ExampleBuidlerRuntimeEnvironmentField {
public sayHello() {
return "hello";
}
}
declare module "@nomiclabs/buidler/types" {
export interface BuidlerRuntimeEnvironment {
example: ExampleBuidlerRuntimeEnvironmentField;
}
export interface ProjectPaths {
ignoredPath?: string;
}
}
extendEnvironment(env => {
env.example = lazyObject(() => new ExampleBuidlerRuntimeEnvironmentField());
});
You can’t perform that action at this time.