mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-25 13:02:10 +00:00
rename typedef
This commit is contained in:
parent
5e5d7a8636
commit
02c968e676
1 changed files with 5 additions and 5 deletions
|
|
@ -2,7 +2,7 @@
|
|||
// document.getElementById("popover-container").style.height = 0;
|
||||
class ConfigMenu {
|
||||
/**
|
||||
* @typedef {Object} DribbblishConfigOptions
|
||||
* @typedef {Object} DribbblishConfigItem
|
||||
* @property {"checkbox" | "select" | "button" | "slider" | "number" | "text" | "time"} type
|
||||
* @property {String|DribbblishConfigArea} [area={name: "Main Settings", order: 0}]
|
||||
* @property {any} [data={}]
|
||||
|
|
@ -16,7 +16,7 @@ class ConfigMenu {
|
|||
* @property {showChildren} [showChildren]
|
||||
* @property {onAppended} [onAppended]
|
||||
* @property {onChange} [onChange]
|
||||
* @property {DribbblishConfigOptions[]} [children=[]]
|
||||
* @property {DribbblishConfigItem[]} [children=[]]
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
@ -42,7 +42,7 @@ class ConfigMenu {
|
|||
* @returns {void}
|
||||
*/
|
||||
|
||||
/** @type {Object.<string, DribbblishConfigOptions>} */
|
||||
/** @type {Object.<string, DribbblishConfigItem>} */
|
||||
#config;
|
||||
|
||||
constructor() {
|
||||
|
|
@ -78,7 +78,7 @@ class ConfigMenu {
|
|||
|
||||
/**
|
||||
* @private
|
||||
* @param {DribbblishConfigOptions} options
|
||||
* @param {DribbblishConfigItem} options
|
||||
*/
|
||||
addInputHTML(options) {
|
||||
this.registerArea(options.area);
|
||||
|
|
@ -106,7 +106,7 @@ class ConfigMenu {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {DribbblishConfigOptions} options
|
||||
* @param {DribbblishConfigItem} options
|
||||
*/
|
||||
register(options) {
|
||||
const defaultOptions = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue