Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
refactor: code cleanups and add functionDependsOn
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Kloubert committed Feb 1, 2024
1 parent dc61b65 commit b4384fc
Show file tree
Hide file tree
Showing 13 changed files with 603 additions and 438 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log (@egomobile/documentation)

## 0.4.0

- add tools to add function dependencies
- reorganize code, especially types

## 0.3.0

- implement serializable types and `serializeDependencies()` utility function
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ npm install --save @egomobile/documentation
```typescript
import {
defaultDependencies,
DependsOn
DependsOn,
functionDependsOn
} from "@egomobile/documentation";

@DependsOn({
Expand Down Expand Up @@ -76,6 +77,12 @@ class MyDocumentedClass {
}
}

function myFunction() {
// ...
}
// do this for functions as well
functionDependsOn(myFunction);

console.log(
// by default all information are
// stored in this module-wide array
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egomobile/documentation",
"version": "0.3.0",
"version": "0.4.0",
"description": "Tools for documenting (TypeScript) code.",
"main": "lib/index.js",
"engines": {
Expand Down

0 comments on commit b4384fc

Please sign in to comment.