mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Merge pull request #3458 from JellisHogenbijl/patch-1
Can't call spectrum function with a method name
This commit is contained in:
Vendored
+7
-7
@@ -8,12 +8,6 @@
|
||||
|
||||
interface JQuery {
|
||||
|
||||
/**
|
||||
* Initializes the input element that it is called on
|
||||
* as a spectrum colorpicker instance.
|
||||
*/
|
||||
spectrum(options?: Spectrum.Options): JQuery;
|
||||
|
||||
/**
|
||||
* Shows the colorpicker.
|
||||
*/
|
||||
@@ -97,6 +91,12 @@ interface JQuery {
|
||||
*/
|
||||
spectrum(methodName: string): any; // in most cases this is JQuery except for the get method which returns a tinycolorInstance
|
||||
|
||||
/**
|
||||
* Initializes the input element that it is called on
|
||||
* as a spectrum colorpicker instance.
|
||||
*/
|
||||
spectrum(options?: Spectrum.Options): JQuery;
|
||||
|
||||
/**
|
||||
* Called at the beginning of a drag event on either hue slider, alpha slider, or main color picker areas.
|
||||
*/
|
||||
@@ -289,4 +289,4 @@ declare module Spectrum {
|
||||
*/
|
||||
beforeShow?: (color: tinycolorInstance) => void;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user