Skip to content

Commit 33f9643

Browse files
committed
fix(ts): type realtime param for AV.init
1 parent e5e0886 commit 33f9643

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"prettier": "^1.11.1",
6363
"pretty-quick": "^1.4.1",
6464
"should": "^11.1.0",
65-
"typescript": "^2.4.1",
65+
"typescript": "^3.0.3",
6666
"weapp-polyfill": "^3.1.2",
6767
"webpack": "^3.11.0",
6868
"webpack-strip-block": "^0.2.0"

storage.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { Realtime } from 'leancloud-realtime';
2+
13
export as namespace AV;
24

35
interface IteratorResult<T> {
@@ -907,7 +909,7 @@ declare class Statistic {
907909

908910
declare interface Ranking {
909911
value: number;
910-
user: AV.User;
912+
user: User;
911913
rank: number;
912914
includedStatistics?: Statistic[];
913915
}
@@ -1202,6 +1204,7 @@ export function init(options: {
12021204
production?: boolean;
12031205
serverURLs?: string | ServerURLs;
12041206
disableCurrentUser?: boolean;
1207+
realtime?: Realtime;
12051208
}): void;
12061209
export function setServerURLs(urls: string | ServerURLs): void;
12071210
export function setProduction(production: boolean): void;

tsconfig.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)