https://github.com/emeryao/typed-dingtalk
TypeScript declaration file for Dingtalk JSAPI
https://github.com/emeryao/typed-dingtalk
declaration definitely-typed dingding dingtalk typescript
Last synced: 21 days ago
JSON representation
TypeScript declaration file for Dingtalk JSAPI
- Host: GitHub
- URL: https://github.com/emeryao/typed-dingtalk
- Owner: emeryao
- License: mit
- Created: 2018-04-18T08:02:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-13T09:20:57.000Z (over 7 years ago)
- Last Synced: 2025-08-20T14:40:22.835Z (6 months ago)
- Topics: declaration, definitely-typed, dingding, dingtalk, typescript
- Language: JavaScript
- Size: 58.6 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# typed-dingtalk
[TypeScript](http://www.typescriptlang.org) declaration file for Dingtalk jsapi
[](https://www.npmjs.com/package/typed-dingtalk)
[](https://circleci.com/gh/Emeryao/typed-dingtalk)
[](https://github.com/Emeryao/typed-dingtalk/pulls)

## Install
* With [`npm`](https://www.npmjs.com/) installed
```batch
npm install typed-dingtalk --save-dev
```
* With [`typings`](https://github.com/typings/typings) installed
```batch
typings install github:Emeryao/typed-dingtalk -SG
```
* Or get the declaration file [here](./dingtalk.d.ts) and include it to your project
* for **[`Angular`](https://angular.io)**
projects created with `ng new` have a `./src/tsconfig.app.json` with default content
```json
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"types": []
},
"exclude": []
}
```
the line of `"types":[]` should be **removed** to make the declaration file work
## About
Based on the official Dingtalk API [documentation](https://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7629140.0.0.q6PDir&treeId=171&articleId=106834&docType=1)
[`dingtalk.js`](https://g.alicdn.com/dingding/open-develop/2.3.0/dingtalk.js) Version `2.3.0`
### About the jsdoc comment
* all Chinese punctuations in comments have been removed
* a comment quoted by `"` means it is directly copy/paste from the official documentaion
* a comment quoted by `'` means it is copied from the official documentation and had been modified
> a common scenario is removing some useless messages like `"the type is number blablabla"`
* a comment has no quotes means it is written by myself
## Last Update
`2018.09.13 UTC+08:00`