Skip to content

Commit

Permalink
fix: typecheck namespace examples (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
vecerek authored Nov 6, 2024
1 parent ab567dd commit e3ae139
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/soft-cats-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/docgen": patch
---

Typecheck namespace examples
7 changes: 6 additions & 1 deletion src/Core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,19 @@ const getExampleFiles = (modules: ReadonlyArray<Domain.Module>) =>
module.functions,
getFiles("function")
)
const namespacesExamples = Array.flatMap(
module.namespaces,
getFiles("namespace")
)

return Array.flatten([
moduleExamples,
methodsExamples,
interfacesExamples,
typeAliasesExamples,
constantsExamples,
functionsExamples
functionsExamples,
namespacesExamples
])
})
})
Expand Down

0 comments on commit e3ae139

Please sign in to comment.