Support 2.6; Add author; Use best practise to refactor code (#36074)

* initial types for agora-rtc-sdk

* set strictFunctionTypes to true

* fixed lint-related

* fixed lint error throw by ci

* <feat> support 2.6 & add author

* <fix> fix umd support

add `export` back to support umd

* <chore> in temp disable rule: export-just-namespace, optimization will be done in next version
This commit is contained in:
Hao Yang
2019-06-11 02:02:17 -07:00
committed by Ron Buckton
parent 64fb247206
commit 8c15eef1b9
3 changed files with 3332 additions and 307 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ let stream = AgoraRTC.createStream({
screen: false
});
client.init('74a0b7bb5d3e47c7abca0533d17b0afa', () => {
client.join('74a0b7bb5d3e47c7abca0533d17b0afa', 'testyy', 21230, uid => {
client.init('abc', () => {
client.join('abc', 'testyy', 21230, uid => {
stream.init(() => {
client.publish(stream, err => {
throw(err);
+3324 -304
View File
File diff suppressed because it is too large Load Diff
+6 -1
View File
@@ -1 +1,6 @@
{ "extends": "dtslint/dt.json" }
{
"extends": "dtslint/dt.json",
"rules": {
"unified-signatures": false
}
}