Skip to content

Commit

Permalink
fix(ts def fix): ts def fix
Browse files Browse the repository at this point in the history
ts def fix
  • Loading branch information
louiswu committed Jul 28, 2019
1 parent 1c56292 commit f72d7b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install tencentcloud-serverless-nodejs

## Example
```javascript
const sdk = require('tencentcloud-serverless-nodejs)
const sdk = require('tencentcloud-serverless-nodejs')
sdk.init({
region: 'ap-guangzhou'
}) // 如果sdk运行在云函数中,初始化时可以不传secretId,secretKey
Expand Down
4 changes: 2 additions & 2 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as services from './services';
interface InitConfig {
secretId: any;
secretKey: any;
secretId?: any;
secretKey?: any;
token?: any;
region: any;
}
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import * as Capi from 'qcloudapi-sdk'
import * as util from 'util'

interface InitConfig {
secretId
secretKey
secretId?
secretKey?
token?
region
}
Expand Down

0 comments on commit f72d7b3

Please sign in to comment.