Skip to content

Commit

Permalink
Merge pull request #49 from qianbin/allow-imported
Browse files Browse the repository at this point in the history
allow to be imported
  • Loading branch information
qianbin committed Jun 12, 2019
2 parents 37b1128 + ee7ea75 commit a4aeacf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ if(!window.connex) {
npm install @vechain/connex --save-dev
```

Add `@vechain/connex` to `compilerOptions.types` in `tsconfig.json` then you are good to go!
Place following line in any .ts file of your project
```typescript
import '@vechain/connex'
```
or

add `@vechain/connex` to `compilerOptions.types` in `tsconfig.json` then you are good to go!

#### Vanilla JS

Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "@vechain/connex",
"version": "1.2.3",
"description": "Standard interface to connect DApp with VeChain and user",
"main": "",
"main": "index.js",
"types": "index.d.ts",
"scripts": {},
"repository": {
"type": "git",
Expand Down

0 comments on commit a4aeacf

Please sign in to comment.