Skip to content

Commit

Permalink
Updated the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Jun 11, 2019
1 parent 201a311 commit beaef5f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion doc/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ source: lib/enum.js
Just use the `Enum.create()` method with an object literal containing scalar values (i.e. only booleans, numbers and strings):

```js
/** Specifies the days of the week. */
/**
* Specifies the days of the week.
* @enum {number}
*/
const DayOfWeek = Enum.create({
sunday: 0,
monday: 1,
Expand Down
5 changes: 4 additions & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
<p>Open the console provided by the development tools of your browser...</p>

<script>
/** Specifies the days of the week. */
/**
* Specifies the days of the week.
* @enum {number}
*/
const DayOfWeek = Enum.create({
sunday: 0,
monday: 1,
Expand Down
5 changes: 4 additions & 1 deletion example/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
/* eslint-disable capitalized-comments, line-comment-position, no-unused-vars */
import {Enum} from '@cedx/enum';

/** Specifies the days of the week. */
/**
* Specifies the days of the week.
* @enum {number}
*/
const DayOfWeek = Enum.create({
sunday: 0,
monday: 1,
Expand Down

0 comments on commit beaef5f

Please sign in to comment.