forked from juhaodong/innerken-js-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIKUtils.d.ts
25 lines (24 loc) · 857 Bytes
/
IKUtils.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
export interface IKUtils{
ValidateRules,
compose():string, //not sure return value
trick,
delCookie(name),
setCookie(cName, value:string, expireDays:number),
getCookie(name):string, //not sure
deepCopy(target:object):object,
hideLoading(success:number),
showLoading(canCancel:boolean),
showError(content:string, title?:string),
toast(title:string, type:string),
showConfirm(content:string, title?:string ),
checkKeyExist(item, key:string):boolean,
safeCallFunction(on:object, func, ...args),
extend(target:object, args):object, //not sure
toggleElement(el:object, arr:any[]),
removeElement(el:object, arr:any[]),
play(url?:string),
getQueryString(name:string):string, //not sure
wait(time):Promise<any> //not sure
}
export declare const IKUtils:IKUtils
export default IKUtils