2022-11-18 21:38:41 +01:00

26 lines
500 B
TypeScript

const options: mmOptionsDrag = {
open: false,
node: null
};
export default options;
/**
* Extend shorthand options.
*
* @param {object} options The options to extend.
* @return {object} The extended options.
*/
export function extendShorthandOptions(options: mmOptionsDrag): mmOptionsDrag {
if (typeof options == 'boolean') {
options = {
open: options
};
}
if (typeof options != 'object') {
options = {};
}
return options;
}