Skip to content

Commit

Permalink
docs: improve enum type for javascript users
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Jul 10, 2018
1 parent 854d084 commit fae420b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#### Fixes(if relevant): #1
#### Fixes(if relevant):

#### Checks

Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,14 @@ enum DropPosition {
inside,
down,
}
// For javascript users, the enum type can not imported from the package,
// it is just number(0,1,2,3 in order), so you can use this instead:
const DropPosition = {
empty: 0,
up: 1,
inside: 2,
down: 3
}
```

## event data structure
Expand Down

0 comments on commit fae420b

Please sign in to comment.