Skip to content

Commit

Permalink
Ported the example code to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Aug 2, 2019
1 parent eb37ca1 commit 902ee08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 1 addition & 4 deletions example/index.html
Expand Up @@ -10,10 +10,7 @@
<p>Open the console provided by the development tools of your browser...</p>

<script>
/**
* Specifies the days of the week.
* @enum {number}
*/
// Define the enumeration.
const DayOfWeek = Enum.create({
sunday: 0,
monday: 1,
Expand Down
9 changes: 4 additions & 5 deletions example/main.js → example/main.ts
@@ -1,10 +1,9 @@
/* eslint-disable capitalized-comments, line-comment-position, no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars */

// @ts-ignore
import {Enum} from '@cedx/enum';

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

0 comments on commit 902ee08

Please sign in to comment.