TypeScript declaration file for Dingtalk jsapi
-
With
npminstallednpm install typed-dingtalk --save-dev
-
With
typingsinstalledtypings install github:Emeryao/typed-dingtalk -SG
-
Or get the declaration file here and include it to your project
-
for
Angular
projects created withng newhave a./src/tsconfig.app.jsonwith default content{ "extends": "../tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", "types": [] }, "exclude": [] }the line of
"types":[]should be removed to make the declaration file work
Based on the official Dingtalk API documentation
dingtalk.js Version 2.3.0
- 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 modifieda common scenario is removing some useless messages like
"the type is number blablabla" - a comment has no quotes means it is written by myself
2018.09.13 UTC+08:00