Skip to content

Commit 84fa420

Browse files
Christian KoopmannChristian Koopmann
authored andcommitted
Fix typescript error and README formatting
1 parent 2cc6856 commit 84fa420

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

packages/hardhat/README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,16 @@ hardhat typechain # always regenerates typings to all files
9090

9191
## Configuration
9292

93-
This plugin extends the `hardhatConfig` optional `typechain` object.
94-
The object contains the following (optional) fields:
95-
- `target`: one of the targets specified by the TypeChain [docs](https://github.com/ethereum-ts/TypeChain#cli) (defaults to `ethers`)
93+
This plugin extends the `hardhatConfig` optional `typechain` object. The object contains the following (optional)
94+
fields:
95+
96+
- `target`: one of the targets specified by the TypeChain [docs](https://github.com/ethereum-ts/TypeChain#cli) (defaults
97+
to `ethers`)
9698
- `outDir`: the output directory of the artifacts that TypeChain creates (defaults to `typechain`).
97-
- `artifacts`: glob pattern that defines for which build artifacts to generate types (defaults to all artifacts generated in compile step)
98-
- `alwaysGenerateOverloads`: some targets won't generate unnecessary types for overloaded functions by default, this option forces to always generate them
99+
- `artifacts`: glob pattern that defines for which build artifacts to generate types (defaults to all artifacts
100+
generated in compile step)
101+
- `alwaysGenerateOverloads`: some targets won't generate unnecessary types for overloaded functions by default, this
102+
option forces to always generate them
99103
- `externalArtifacts`: array of glob patterns with external artifacts to process (e.g external libs from `node_modules`)
100104
- `dontOverrideCompile`: boolean disabling automatic inclusion of type generation in compile task.
101105

packages/hardhat/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { glob, PublicConfig as RunTypeChainConfig, runTypeChain } from 'typechai
1010
import { getDefaultTypechainConfig } from './config'
1111
import { TASK_TYPECHAIN, TASK_TYPECHAIN_GENERATE_TYPES } from './constants'
1212

13-
function intersect(a: Array<T>, b: Array<T>): Array<T> {
13+
function intersect<T>(a: Array<T>, b: Array<T>): Array<T> {
1414
var setA = new Set(a)
1515
var setB = new Set(b)
1616
var intersection = new Set([...setA].filter((x) => setB.has(x)))

0 commit comments

Comments
 (0)