From ea6e88eca273500d8f928fd9dd2736f06949b904 Mon Sep 17 00:00:00 2001 From: DeepCold Date: Sat, 1 Sep 2018 20:59:26 +0800 Subject: [PATCH] change to upper case --- types/weixin-app/index.d.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/types/weixin-app/index.d.ts b/types/weixin-app/index.d.ts index 8af88ba63d..38af972ec2 100644 --- a/types/weixin-app/index.d.ts +++ b/types/weixin-app/index.d.ts @@ -2271,18 +2271,18 @@ declare namespace wx { /** * WXML节点布局相交状态 */ - interface createIntersectionObserverOption { + interface CreateIntersectionObserverOption { thresholds?: number[]; initialRatio?: number; selectAll?: boolean; } - interface margins { + interface Margins { left?: number; right?: number; top?: number; bottom?: number; } - interface observeResponse { + interface ObserveResponse { id: string; dataset: any; time: number; @@ -2310,23 +2310,23 @@ declare namespace wx { top: number; }; } - interface createIntersectionObserverCallBack { + interface CreateIntersectionObserverCallBack { relativeTo( selector?: string, - margins?: margins - ): createIntersectionObserverCallBack; + margins?: Margins + ): CreateIntersectionObserverCallBack; relativeToViewport( - margins?: margins - ): createIntersectionObserverCallBack; + margins?: Margins + ): CreateIntersectionObserverCallBack; observe( selector?: string, - callback?: (response: observeResponse) => void - ): createIntersectionObserverCallBack; + callback?: (response: ObserveResponse) => void + ): CreateIntersectionObserverCallBack; disconnect(): void; } function createIntersectionObserver( - options?: createIntersectionObserverOption - ): createIntersectionObserverCallBack; + options?: CreateIntersectionObserverOption + ): CreateIntersectionObserverCallBack; interface NodesRefRect { /** 节点的ID */