mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
added HTMLElement constructor
This commit is contained in:
Vendored
+2
-2
@@ -34,8 +34,8 @@ interface iScrollOptions {
|
||||
|
||||
declare class iScroll {
|
||||
|
||||
constructor (element: string);
|
||||
constructor (element: string, options: iScrollOptions);
|
||||
constructor (element: string, options?: iScrollOptions);
|
||||
constructor (element: HTMLElement, options?: iScrollOptions);
|
||||
|
||||
destroy(): void;
|
||||
refresh(): void;
|
||||
|
||||
@@ -16,4 +16,8 @@ var myScroll4 = new iScroll('wrapper', {
|
||||
});
|
||||
var myScroll6 = new iScroll('wrapper', { scrollbarClass: 'myScrollbar' });
|
||||
|
||||
myScroll1.refresh();
|
||||
myScroll1.refresh();
|
||||
|
||||
|
||||
var myScroll6 = new iScroll(document.getElementById('wrapper'));
|
||||
var myScroll7 = new iScroll(document.getElementById('wrapper'), { scrollbarClass: 'myScrollbar' });
|
||||
Vendored
+2
-2
@@ -59,8 +59,8 @@ interface iScrollOptions {
|
||||
|
||||
declare class iScroll {
|
||||
|
||||
constructor (element: string);
|
||||
constructor (element: string, options: iScrollOptions);
|
||||
constructor (element: string, options?: iScrollOptions);
|
||||
constructor (element: HTMLElement, options?: iScrollOptions);
|
||||
|
||||
destroy(): void;
|
||||
refresh(): void;
|
||||
|
||||
Reference in New Issue
Block a user