mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
replace internal module to namespace
This commit is contained in:
Vendored
+7
-7
@@ -5,22 +5,22 @@
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts" />
|
||||
|
||||
declare module JQueryFarbtastic {
|
||||
declare namespace JQueryFarbtastic {
|
||||
type Placeholder = string | Element | JQuery;
|
||||
type CallbackFunction = (color: string) => any;
|
||||
type Callback = CallbackFunction | Placeholder;
|
||||
|
||||
type CallbackFunction = (color: string) => any;
|
||||
type Callback = CallbackFunction | Placeholder;
|
||||
|
||||
interface Options {
|
||||
callback?: Callback;
|
||||
width?: number;
|
||||
wheelWidth?: number;
|
||||
}
|
||||
|
||||
|
||||
interface Farbtastic {
|
||||
linked: CallbackFunction | JQuery;
|
||||
color: string;
|
||||
hsl: number[];
|
||||
|
||||
|
||||
linkTo(callback: Callback): Farbtastic;
|
||||
setColor(color: string | number[]): Farbtastic;
|
||||
setHSL(hsl: number[]): Farbtastic;
|
||||
@@ -37,4 +37,4 @@ interface JQuery {
|
||||
farbtastic(callback: JQueryFarbtastic.Callback): JQuery;
|
||||
farbtastic(options: JQueryFarbtastic.Options): JQuery;
|
||||
farbtastic(): JQuery;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user