mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge branch 'master' into rename-repo-url
This commit is contained in:
Vendored
+6
-6
@@ -3,7 +3,7 @@
|
||||
// Definitions by: Bruno Grieder <https://github.com/bgrieder>, Clayton Lautier <https://github.com/claylaut>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module Switchery {
|
||||
declare namespace Switchery {
|
||||
|
||||
interface SwitcheryStatic {
|
||||
new (node: Node, options?: Options): Switchery;
|
||||
@@ -63,26 +63,26 @@ interface Switchery {
|
||||
|
||||
/**
|
||||
* Unbinding all event handlers attached to the switch element to prepare the object for garbage collection.
|
||||
* @returns {void}
|
||||
* @returns {void}
|
||||
*/
|
||||
destroy(): void;
|
||||
|
||||
/**
|
||||
* Enable disabled switch by re-adding event handlers and changing the opacity to 1.
|
||||
* @returns {void}
|
||||
* @returns {void}
|
||||
*/
|
||||
enable(): void;
|
||||
|
||||
/**
|
||||
* Disable switch by unbinding attached events and changing opacity to disabledOpacity value
|
||||
* @returns {void}
|
||||
* @returns {void}
|
||||
*/
|
||||
disable(): void;
|
||||
|
||||
/**
|
||||
* Check if switch is currently disabled by checking the readonly and disabled attributes on the checkbox and the disabled option set via JS.
|
||||
* If any of those are present, the returned value is true.
|
||||
* @returns {boolean} whether it's disabled or not.
|
||||
* @returns {boolean} whether it's disabled or not.
|
||||
*/
|
||||
isDisabled(): boolean;
|
||||
}
|
||||
@@ -90,4 +90,4 @@ interface Switchery {
|
||||
declare module "switchery" {
|
||||
var switchery: Switchery.SwitcheryStatic;
|
||||
export default switchery;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user