diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-03 19:43:05 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-10 18:24:37 +0800 |
commit | c2d6e78b2a82b62b375f78aee99e3a8b951268ba (patch) | |
tree | 146a73b879213174970a3f69e21e0a4e3c8423a5 /packages | |
parent | 7233a11ba018a5b8c1ffc2eda3b00e207b245f15 (diff) | |
download | dexon-sol-tools-c2d6e78b2a82b62b375f78aee99e3a8b951268ba.tar dexon-sol-tools-c2d6e78b2a82b62b375f78aee99e3a8b951268ba.tar.gz dexon-sol-tools-c2d6e78b2a82b62b375f78aee99e3a8b951268ba.tar.bz2 dexon-sol-tools-c2d6e78b2a82b62b375f78aee99e3a8b951268ba.tar.lz dexon-sol-tools-c2d6e78b2a82b62b375f78aee99e3a8b951268ba.tar.xz dexon-sol-tools-c2d6e78b2a82b62b375f78aee99e3a8b951268ba.tar.zst dexon-sol-tools-c2d6e78b2a82b62b375f78aee99e3a8b951268ba.zip |
Manually apply #14
Diffstat (limited to 'packages')
-rw-r--r-- | packages/web3-typescript-typings/README.md | 9 | ||||
-rw-r--r-- | packages/web3-typescript-typings/package.json | 6 | ||||
-rw-r--r-- | packages/web3-typescript-typings/web3/index.d.ts (renamed from packages/web3-typescript-typings/index.d.ts) | 0 |
3 files changed, 6 insertions, 9 deletions
diff --git a/packages/web3-typescript-typings/README.md b/packages/web3-typescript-typings/README.md index ffe1e00fa..8d92aa681 100644 --- a/packages/web3-typescript-typings/README.md +++ b/packages/web3-typescript-typings/README.md @@ -18,11 +18,8 @@ Using yarn: ``` 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": [ - ... - "./node_modules/web3-typescript-typings/index.d.ts" -] +"typeRoots": ["node_modules/@types", "node_modules/web3-typescript-typings"] ``` -And you're ready to go to a bright type-safe and distributed future!
\ No newline at end of file +And you're ready to go to a bright type-safe and distributed future! diff --git a/packages/web3-typescript-typings/package.json b/packages/web3-typescript-typings/package.json index 1bee2291d..f3c444447 100644 --- a/packages/web3-typescript-typings/package.json +++ b/packages/web3-typescript-typings/package.json @@ -2,10 +2,10 @@ "name": "web3-typescript-typings", "version": "0.8.0", "description": "Typescript type definitions for web3", - "main": "index.d.ts", - "types": "index.d.ts", + "main": "web3/index.d.ts", + "types": "web3/index.d.ts", "scripts": { - "lint": "tslint index.d.ts" + "lint": "tslint web3/index.d.ts" }, "repository": { "type": "git", diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/web3/index.d.ts index 8ecb8420f..8ecb8420f 100644 --- a/packages/web3-typescript-typings/index.d.ts +++ b/packages/web3-typescript-typings/web3/index.d.ts |