Skip to content

Commit

Permalink
export ts type
Browse files Browse the repository at this point in the history
  • Loading branch information
embbnux committed Aug 16, 2019
1 parent 81d6d6e commit 646f915
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
src/*.js
src/*.js.map
src/*.d.ts
build
node_modules
lib
.DS_Store
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ CDN
<script type="text/javascript" src="https://cdn.pubnub.com/sdk/javascript/pubnub.4.20.1.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/fetch/0.11.1/fetch.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/ringcentral/ringcentral-js/3.2.2/build/ringcentral.js"></script>
<script type="text/javascript" src="https://unpkg.com/[email protected].1/build/index.js"></script>
<script type="text/javascript" src="https://unpkg.com/[email protected].3/build/index.js"></script>
```

## Usage
Expand All @@ -47,6 +47,11 @@ For this example you will also need to have [RingCentral JS SDK](https://github.
Configure the web-phone

```js
// npm import
// import { RingCentralCallControl } from 'ringcentral-call-control';
// or use CDN
// window.RingCentralCallControl

var appClientId = '...';
var appClientSecret = '...';
var appName = '...';
Expand Down
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ringcentral-call-control",
"version": "0.0.2",
"main": "build/index.js",
"version": "0.0.3",
"main": "lib/index.js",
"license": "MIT",
"scripts": {
"prepublish": "tsc && webpack",
Expand All @@ -22,5 +22,13 @@
},
"peerDependencies": {
"ringcentral": "^3.2.2"
}
},
"keywords": [
"ringcentral",
"callcontrol",
"telephony",
"javascript",
"library",
"typescript"
]
}
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
"es6",
"dom"
],
"sourceMap": true
"sourceMap": true,
"declaration": true,
"outDir": "lib"
},
"files": ["src/index.ts"],
"files": ["src/index.ts", "src/Session.ts", "src/formatParty.ts"],
"compileOnSave": true
}

0 comments on commit 646f915

Please sign in to comment.