Skip to content

Commit

Permalink
docs: add expected return value details
Browse files Browse the repository at this point in the history
  • Loading branch information
jbottigliero committed Aug 24, 2019
1 parent b27b25a commit bf08d1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,14 @@ An `updater` is expected to be a Javascript module with _atleast_ two methods ex

This method is used to read the version from the provided file contents.

The return value is expected to be a semantic version string.

##### `writeVersion(contents = string, version: string): string`

This method is used to write the version to the provided contents.

The return value will be written directly (overwrite) to the provided file.

---

Let's assume our `VERSION_TRACKER.json` has the following contents:
Expand Down

0 comments on commit bf08d1f

Please sign in to comment.