Manually apply #14

This commit is contained in:
Leonid Logvinov
2018-01-03 12:43:05 +01:00
parent 7233a11ba0
commit c2d6e78b2a
3 changed files with 6 additions and 9 deletions

View File

@@ -18,11 +18,8 @@ Using yarn:
``` ```
yarn add web3-typescript-typings -D yarn add web3-typescript-typings -D
``` ```
Also don't forget to manually include `index.d.ts` within an `include` section of your `tsconfig.json` Also don't forget to manually include the definitions within the `typeRoots` section of your `tsconfig.json`
``` ```
"include": [ "typeRoots": ["node_modules/@types", "node_modules/web3-typescript-typings"]
...
"./node_modules/web3-typescript-typings/index.d.ts"
]
``` ```
And you're ready to go to a bright type-safe and distributed future! And you're ready to go to a bright type-safe and distributed future!

View File

@@ -2,10 +2,10 @@
"name": "web3-typescript-typings", "name": "web3-typescript-typings",
"version": "0.8.0", "version": "0.8.0",
"description": "Typescript type definitions for web3", "description": "Typescript type definitions for web3",
"main": "index.d.ts", "main": "web3/index.d.ts",
"types": "index.d.ts", "types": "web3/index.d.ts",
"scripts": { "scripts": {
"lint": "tslint index.d.ts" "lint": "tslint web3/index.d.ts"
}, },
"repository": { "repository": {
"type": "git", "type": "git",