Skip to content

Commit

Permalink
feat(package management): add @types/grecaptcha as optional dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
DethAriel committed Feb 17, 2017
1 parent 5fddead commit 85fbfba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,6 @@ The easiest way is to install trough [npm](https://www.npmjs.com/package/ng2-rec
npm i ng2-recaptcha --save
```

In order to take advantage of type-checking system you should also install `grecaptcha` typings:

```
typings install dt~grecaptcha --save --global
```

Or, if you're using TypeScript 2 or `angular-cli`:

```
npm install @types/grecaptcha --save-dev
```

## <a name="example-basic"></a>Usage [(see in action)](https://dethariel.github.io/ng2-recaptcha/basic)

To start with, you need to add one of the `Recaptcha` modules (more on that [later](#modules)):
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
],
"author": "Ruslan Arkhipau <[email protected]>",
"license": "MIT",
"optionalDependencies": {
"@types/grecaptcha": "^2.0.30"
},
"peerDependencies": {
"@angular/core": "^2.0.0"
},
Expand Down

0 comments on commit 85fbfba

Please sign in to comment.