change ()=> type to (): type

This commit is contained in:
申晗
2018-08-23 18:46:47 +08:00
parent a56a02bdb6
commit bf84f8bcf8
+4 -4
View File
@@ -3210,10 +3210,10 @@ declare namespace wx {
};
}
interface createIntersectionObserverCallBack {
relativeTo: (selector?: string, margins?: margins) => createIntersectionObserverCallBack;
relativeToViewport: (margins?: margins) => createIntersectionObserverCallBack;
observe: (selector?: string, callback?: (response: observeResponse) => void) => createIntersectionObserverCallBack;
disconnect: () => void;
relativeTo(selector?: string, margins?: margins): createIntersectionObserverCallBack;
relativeToViewport(margins?: margins): createIntersectionObserverCallBack;
observe(selector?: string, callback?: (response: observeResponse) => void): createIntersectionObserverCallBack;
disconnect(): void;
}
function createIntersectionObserver(options?: createIntersectionObserverOption): createIntersectionObserverCallBack;
// #endregion