Skip to content

Commit

Permalink
Updated config example
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrylR committed Nov 4, 2024
1 parent cee807a commit e57e65f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ To create a `CircuitTypesGenerator` object, it is necessary to pass a config:

```typescript
ZKTypeConfig = {
basePath: string;
projectRoot: string;
circuitsASTPaths: string[];
outputTypesDir?: string;
};
basePath: "circuits",
projectRoot: process.cwd(),
circuitsArtifactsPaths: [
"circuits/auth/Matrix_artifacts.json",
],
outputTypesDir: "generated-types/circuits",
}
```

This config contains all the information required to generate TypeScript bindings for given circuits.
Expand Down

0 comments on commit e57e65f

Please sign in to comment.