Comparing version 0.3.9 to 0.3.10
@@ -7,4 +7,22 @@ "use strict"; | ||
var _callfunc = _interopRequireDefault(require("./callfunc.js")); | ||
// @ts-check | ||
/** | ||
* @typedef {object} DebounceExecutorOption | ||
* @property {number=} delay | ||
* @property {any[]=} args | ||
* @property {any=} scope | ||
*/ | ||
/** | ||
* @callback DebounceExecutor | ||
* @param {DebounceExecutorOption=} option | ||
*/ | ||
/** | ||
* only run lasttime. | ||
* | ||
* @param {Function} func | ||
* @param {number} defaultDelay | ||
* @returns {DebounceExecutor} | ||
*/ | ||
@@ -11,0 +29,0 @@ var debounce = function debounce(func, defaultDelay) { |
@@ -80,3 +80,3 @@ "use strict"; | ||
} | ||
(0, _createClass2["default"])(EventWrap, [{ | ||
return (0, _createClass2["default"])(EventWrap, [{ | ||
key: "cleanAll", | ||
@@ -99,3 +99,2 @@ value: function cleanAll(type) { | ||
}]); | ||
return EventWrap; | ||
}(); | ||
@@ -102,0 +101,0 @@ var register = exports.register = function register(el) { |
{ | ||
"version": "0.3.9", | ||
"version": "0.3.10", | ||
"name": "call-func", | ||
@@ -4,0 +4,0 @@ "repository": { |
export default debounce; | ||
export type DebounceExecutorOption = { | ||
delay?: number | undefined; | ||
args?: any[] | undefined; | ||
scope?: any | undefined; | ||
}; | ||
export type DebounceExecutor = (option?: DebounceExecutorOption | undefined) => any; | ||
/** | ||
* @typedef {object} DebounceExecutorOption | ||
* @property {number=} delay | ||
* @property {any[]=} args | ||
* @property {any=} scope | ||
*/ | ||
/** | ||
* @callback DebounceExecutor | ||
* @param {DebounceExecutorOption=} option | ||
*/ | ||
/** | ||
* only run lasttime. | ||
* | ||
* @param {Function} func | ||
* @param {number} defaultDelay | ||
* @returns {DebounceExecutor} | ||
*/ | ||
declare function debounce(func: any, defaultDelay: any): (option: any) => void; | ||
declare function debounce(func: Function, defaultDelay: number): DebounceExecutor; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28611
797