Skip to content

Commit

Permalink
Merge pull request #750 from semaphore-protocol/fix/docs
Browse files Browse the repository at this point in the history
docs: fix `typedoc` compilation warnings
  • Loading branch information
cedoor authored Apr 24, 2024
2 parents 1849055 + 68181aa commit 6502c17
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/group/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ export class Group {
* @param nodes The stringified JSON of the group.
* @returns The {@link Group} instance.
*/
static import(exportedGroup: string): Group {
static import(nodes: string): Group {
const group = new Group()

group.leanIMT.import(exportedGroup)
group.leanIMT.import(nodes)

return group
}
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/networks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function getHardhatNetworks(privateKey?: string) {
/**
* Returns name, address and start block of a Semaphore contract deployed
* on a specific supported network.
* @param The network supported by Semaphore.
* @param supportedNetwork The network supported by Semaphore.
* @returns An object with name, address and start block of the deployed contract.
*/
export function getDeployedContract(supportedNetwork: SupportedNetwork) {
Expand Down
26 changes: 26 additions & 0 deletions typedoc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const fs = require("fs")
const path = require("path")

const EXCLUDE_PKGS = [
"cli-template",
"cli-template-contracts-hardhat",
"cli-template-monorepo-ethers",
"cli-template-monorepo-subgraph",
"core",
"circuits",
"contracts",
"hardhat",
"cli"
]
const packagesDir = path.join(__dirname, "packages")
const entryPoints = fs
.readdirSync(packagesDir, { withFileTypes: true })
.filter((dirent) => dirent.isDirectory() && !EXCLUDE_PKGS.includes(dirent.name))
.map((dirent) => path.join("packages", dirent.name))

/** @type {import('typedoc').typedocoptions} */
module.exports = {
entryPoints,
name: "Semaphore SDK",
entryPointStrategy: "packages"
}
6 changes: 0 additions & 6 deletions typedoc.json

This file was deleted.

0 comments on commit 6502c17

Please sign in to comment.