From 8a265e1fda0eb97b56da8f93e232a896ad1c6ca2 Mon Sep 17 00:00:00 2001 From: liu-ganlin Date: Mon, 28 Nov 2022 15:41:51 +0800 Subject: [PATCH] update d.ts callbackfn -> callbackFn Signed-off-by: liu-ganlin --- api/@ohos.util.ArrayList.d.ts | 8 ++++---- api/@ohos.util.Deque.d.ts | 4 ++-- api/@ohos.util.HashMap.d.ts | 2 +- api/@ohos.util.HashSet.d.ts | 2 +- api/@ohos.util.LightWeightMap.d.ts | 2 +- api/@ohos.util.LightWeightSet.d.ts | 2 +- api/@ohos.util.LinkedList.d.ts | 4 ++-- api/@ohos.util.List.d.ts | 8 ++++---- api/@ohos.util.PlainArray.d.ts | 2 +- api/@ohos.util.Queue.d.ts | 4 ++-- api/@ohos.util.Stack.d.ts | 4 ++-- api/@ohos.util.TreeMap.d.ts | 2 +- api/@ohos.util.TreeSet.d.ts | 2 +- api/@ohos.util.Vector.d.ts | 8 ++++---- 14 files changed, 27 insertions(+), 27 deletions(-) diff --git a/api/@ohos.util.ArrayList.d.ts b/api/@ohos.util.ArrayList.d.ts index 4e5a2e0a4c..5fc0dd05e7 100644 --- a/api/@ohos.util.ArrayList.d.ts +++ b/api/@ohos.util.ArrayList.d.ts @@ -114,7 +114,7 @@ declare class ArrayList { removeByRange(fromIndex: number, toIndex: number): void; /** * Replaces each element of this arraylist with the result of applying the operator to that element. - * @param callbackfn (required) A function that accepts up to four arguments.The function to be called for + * @param callbackFn (required) A function that accepts up to four arguments.The function to be called for * each element in the arraylist,Returns the result of an operation * @param Value (required) current element * @param Index (Optional) The index value of the current element. @@ -126,11 +126,11 @@ declare class ArrayList { * @since 8 * @syscap SystemCapability.Utils.Lang */ - replaceAllElements(callbackfn: (value: T, index?: number, arrlist?: ArrayList) => T, + replaceAllElements(callbackFn: (value: T, index?: number, arrlist?: ArrayList) => T, thisArg?: Object): void; /** * Executes a provided function once for each value in the arraylist object. - * @param callbackfn (required) A function that accepts up to four arguments.The function to + * @param callbackFn (required) A function that accepts up to four arguments.The function to * be called for each element in the arraylist * @param Value (required) current element * @param Index (Optional) The index value of the current element. @@ -142,7 +142,7 @@ declare class ArrayList { * @since 8 * @syscap SystemCapability.Utils.Lang */ - forEach(callbackfn: (value: T, index?: number, arrlist?: ArrayList) => void, + forEach(callbackFn: (value: T, index?: number, arrlist?: ArrayList) => void, thisArg?: Object): void; /** * Sorts this arraylist according to the order induced by the specified comparator,without comparator this parameter, diff --git a/api/@ohos.util.Deque.d.ts b/api/@ohos.util.Deque.d.ts index 8591d7d411..0289c068f6 100644 --- a/api/@ohos.util.Deque.d.ts +++ b/api/@ohos.util.Deque.d.ts @@ -86,7 +86,7 @@ declare class Deque { popLast(): T; /** * Executes a provided function once for each value in the deque object. - * @param callbackfn (required) A function that accepts up to four arguments.The function to be called for each element in the deque + * @param callbackFn (required) A function that accepts up to four arguments.The function to be called for each element in the deque * @param Value (required) current element * @param Index (Optional) The index value of the current element. * @param deque (Optional) The deque object to which the current element belongs. @@ -97,7 +97,7 @@ declare class Deque { * @since 8 * @syscap SystemCapability.Utils.Lang */ - forEach(callbackfn: (value: T, index?: number, deque?: Deque) => void, + forEach(callbackFn: (value: T, index?: number, deque?: Deque) => void, thisArg?: Object): void; /** * returns an iterator.Each item of the iterator is a Javascript Object diff --git a/api/@ohos.util.HashMap.d.ts b/api/@ohos.util.HashMap.d.ts index e565fbd938..2bc7deb080 100644 --- a/api/@ohos.util.HashMap.d.ts +++ b/api/@ohos.util.HashMap.d.ts @@ -130,7 +130,7 @@ declare class HashMap { * @since 8 * @syscap SystemCapability.Utils.Lang */ - forEach(callbackfn: (value?: V, key?: K, map?: HashMap) => void, + forEach(callbackFn: (value?: V, key?: K, map?: HashMap) => void, thisArg?: Object): void; /** * Returns a new Iterator object that contains the [key, value] pairs for each element in the Map object in insertion order diff --git a/api/@ohos.util.HashSet.d.ts b/api/@ohos.util.HashSet.d.ts index 4d270bf821..5d48c0181e 100644 --- a/api/@ohos.util.HashSet.d.ts +++ b/api/@ohos.util.HashSet.d.ts @@ -79,7 +79,7 @@ declare class HashSet { * @since 8 * @syscap SystemCapability.Utils.Lang */ - forEach(callbackfn: (value?: T, key?: T, set?: HashSet) => void, + forEach(callbackFn: (value?: T, key?: T, set?: HashSet) => void, thisArg?: Object): void; /** * Returns a new Iterator object that contains the values contained in this set diff --git a/api/@ohos.util.LightWeightMap.d.ts b/api/@ohos.util.LightWeightMap.d.ts index e8e29b62d1..dcbe9b43dd 100644 --- a/api/@ohos.util.LightWeightMap.d.ts +++ b/api/@ohos.util.LightWeightMap.d.ts @@ -191,7 +191,7 @@ declare class LightWeightMap { * @since 8 * @syscap SystemCapability.Utils.Lang */ - forEach(callbackfn: (value?: V, key?: K, map?: LightWeightMap) => void, + forEach(callbackFn: (value?: V, key?: K, map?: LightWeightMap) => void, thisArg?: Object): void; /** * returns an ES6 iterator.Each item of the iterator is a Javascript Object diff --git a/api/@ohos.util.LightWeightSet.d.ts b/api/@ohos.util.LightWeightSet.d.ts index 236e4140ef..5c6eca37e7 100644 --- a/api/@ohos.util.LightWeightSet.d.ts +++ b/api/@ohos.util.LightWeightSet.d.ts @@ -129,7 +129,7 @@ declare class LightWeightSet { * @since 8 * @syscap SystemCapability.Utils.Lang */ - forEach(callbackfn: (value?: T, key?: T, set?: LightWeightSet) => void, + forEach(callbackFn: (value?: T, key?: T, set?: LightWeightSet) => void, thisArg?: Object): void; /** * returns an ES6 iterator.Each item of the iterator is a Javascript Object diff --git a/api/@ohos.util.LinkedList.d.ts b/api/@ohos.util.LinkedList.d.ts index 755a9b17e2..e338efc567 100644 --- a/api/@ohos.util.LinkedList.d.ts +++ b/api/@ohos.util.LinkedList.d.ts @@ -192,7 +192,7 @@ declare class LinkedList { set(index: number, element: T): T; /** * Replaces each element of this linkedlist with the result of applying the operator to that element. - * @param callbackfn (required) A function that accepts up to four arguments. + * @param callbackFn (required) A function that accepts up to four arguments. * The function to be called for each element in the linkedlist,Returns the result of an operation * @param Value (required) current element * @param Index (Optional) The index value of the current element. @@ -204,7 +204,7 @@ declare class LinkedList { * @since 8 * @syscap SystemCapability.Utils.Lang */ - forEach(callbackfn: (value: T, index?: number, LinkedList?: LinkedList) => void, + forEach(callbackFn: (value: T, index?: number, LinkedList?: LinkedList) => void, thisArg?: Object): void; /** * Removes all of the elements from this linkedlist.The linkedlist will diff --git a/api/@ohos.util.List.d.ts b/api/@ohos.util.List.d.ts index 657f82992c..36a9a1dd95 100644 --- a/api/@ohos.util.List.d.ts +++ b/api/@ohos.util.List.d.ts @@ -152,7 +152,7 @@ declare class List { equal(obj: Object): boolean; /** * Replaces each element of this list with the result of applying the operator to that element. - * @param callbackfn (required) A function that accepts up to four arguments. + * @param callbackFn (required) A function that accepts up to four arguments. * The function to be called for each element in the list,Returns the result of an operation * @param Value (required) current element * @param Index (Optional) The index value of the current element. @@ -164,7 +164,7 @@ declare class List { * @since 8 * @syscap SystemCapability.Utils.Lang */ - forEach(callbackfn: (value: T, index?: number, List?: List) => void, + forEach(callbackFn: (value: T, index?: number, List?: List) => void, thisArg?: Object): void; /** * Sorts this list according to the order induced by the specified comparator @@ -201,7 +201,7 @@ declare class List { getSubList(fromIndex: number, toIndex: number): List; /** * Replaces each element of this list with the result of applying the operator to that element. - * @param callbackfn (required) A function that accepts up to four arguments. + * @param callbackFn (required) A function that accepts up to four arguments. * The function to be called for each element in the list,Returns the result of an operation * @param Value (required) current element * @param Index (Optional) The index value of the current element. @@ -213,7 +213,7 @@ declare class List { * @since 8 * @syscap SystemCapability.Utils.Lang */ - replaceAllElements(callbackfn: (value: T, index?: number, list?: List) => T, + replaceAllElements(callbackFn: (value: T, index?: number, list?: List) => T, thisArg?: Object): void; /** * convert list to array diff --git a/api/@ohos.util.PlainArray.d.ts b/api/@ohos.util.PlainArray.d.ts index 1f7371770c..1d41440ce0 100644 --- a/api/@ohos.util.PlainArray.d.ts +++ b/api/@ohos.util.PlainArray.d.ts @@ -176,7 +176,7 @@ declare class PlainArray { * @since 8 * @syscap SystemCapability.Utils.Lang */ - forEach(callbackfn: (value: T, index?: number, PlainArray?: PlainArray) => void, + forEach(callbackFn: (value: T, index?: number, PlainArray?: PlainArray) => void, thisArg?: Object): void; /** * returns an iterator.Each item of the iterator is a Javascript Object diff --git a/api/@ohos.util.Queue.d.ts b/api/@ohos.util.Queue.d.ts index 7a5795e56a..edbe572e8b 100644 --- a/api/@ohos.util.Queue.d.ts +++ b/api/@ohos.util.Queue.d.ts @@ -55,7 +55,7 @@ declare class Queue { pop(): T; /** * Executes a provided function once for each value in the queue object. - * @param callbackfn (required) A function that accepts up to four arguments.The function to + * @param callbackFn (required) A function that accepts up to four arguments.The function to * be called for each element in the queue * @param Value (required) current element * @param Index (Optional) The index value of the current element. @@ -67,7 +67,7 @@ declare class Queue { * @since 8 * @syscap SystemCapability.Utils.Lang */ - forEach(callbackfn: (value: T, index?: number, Queue?: Queue) => void, + forEach(callbackFn: (value: T, index?: number, Queue?: Queue) => void, thisArg?: Object): void; /** * returns an iterator.Each item of the iterator is a Javascript Object diff --git a/api/@ohos.util.Stack.d.ts b/api/@ohos.util.Stack.d.ts index b3113cebfd..1877ae282a 100644 --- a/api/@ohos.util.Stack.d.ts +++ b/api/@ohos.util.Stack.d.ts @@ -73,7 +73,7 @@ declare class Stack { locate(element: T): number; /** * Executes a provided function once for each value in the Stack object. - * @param callbackfn (required) A function that accepts up to four arguments.The function + * @param callbackFn (required) A function that accepts up to four arguments.The function * to be called for each element in the Stack * @param Value (required) current element * @param Index (Optional) The index value of the current element. @@ -85,7 +85,7 @@ declare class Stack { * @since 8 * @syscap SystemCapability.Utils.Lang */ - forEach(callbackfn: (value: T, index?: number, stack?: Stack) => void, + forEach(callbackFn: (value: T, index?: number, stack?: Stack) => void, thisArg?: Object): void; /** * returns an ES6 iterator.Each item of the iterator is a Javascript Object diff --git a/api/@ohos.util.TreeMap.d.ts b/api/@ohos.util.TreeMap.d.ts index 194a5af151..49fc89a39e 100644 --- a/api/@ohos.util.TreeMap.d.ts +++ b/api/@ohos.util.TreeMap.d.ts @@ -173,7 +173,7 @@ declare class TreeMap { * @since 8 * @syscap SystemCapability.Utils.Lang */ - forEach(callbackfn: (value?: V, key?: K, map?: TreeMap) => void, + forEach(callbackFn: (value?: V, key?: K, map?: TreeMap) => void, thisArg?: Object): void; /** * Returns a new Iterator object that contains the [key, value] pairs for each element in the Map object in insertion order diff --git a/api/@ohos.util.TreeSet.d.ts b/api/@ohos.util.TreeSet.d.ts index 4e04894074..12740aac04 100644 --- a/api/@ohos.util.TreeSet.d.ts +++ b/api/@ohos.util.TreeSet.d.ts @@ -135,7 +135,7 @@ declare class TreeSet { * @since 8 * @syscap SystemCapability.Utils.Lang */ - forEach(callbackfn: (value?: T, key?: T, set?: TreeSet) => void, + forEach(callbackFn: (value?: T, key?: T, set?: TreeSet) => void, thisArg?: Object): void; /** * Returns a new Iterator object that contains the values contained in this set diff --git a/api/@ohos.util.Vector.d.ts b/api/@ohos.util.Vector.d.ts index febbedd86e..58180f8c60 100644 --- a/api/@ohos.util.Vector.d.ts +++ b/api/@ohos.util.Vector.d.ts @@ -162,7 +162,7 @@ declare class Vector { removeByRange(fromIndex: number, toIndex: number): void; /** * Replaces each element of this vector with the result of applying the operator to that element. - * @param callbackfn (required) A function that accepts up to four arguments.The function to be called + * @param callbackFn (required) A function that accepts up to four arguments.The function to be called * for each element in the vector,Returns the result of an operation * @param Value (required) current element * @param Index (Optional) The index value of the current element. @@ -172,11 +172,11 @@ declare class Vector { * @since 8 * @syscap SystemCapability.Utils.Lang */ - replaceAllElements(callbackfn: (value: T, index?: number, vector?: Vector) => T, + replaceAllElements(callbackFn: (value: T, index?: number, vector?: Vector) => T, thisArg?: Object): void; /** * Executes a provided function once for each value in the vector object. - * @param callbackfn (required) A function that accepts up to four arguments.The function to be + * @param callbackFn (required) A function that accepts up to four arguments.The function to be * called for each element in the vector * @param Value (required) current element * @param Index (Optional) The index value of the current element. @@ -186,7 +186,7 @@ declare class Vector { * @since 8 * @syscap SystemCapability.Utils.Lang */ - forEach(callbackfn: (value: T, index?: number, vector?: Vector) => void, + forEach(callbackFn: (value: T, index?: number, vector?: Vector) => void, thisArg?: Object): void; /** * Sorts this vector according to the order induced by the specified comparator,without comparator -- Gitee