Skip to content

Commit

Permalink
Fix JSDoc for createClock
Browse files Browse the repository at this point in the history
This improves the generated .d.ts so that createClock may be called without arguments.
  • Loading branch information
henhal committed May 27, 2021
1 parent f5d9b3a commit cdd0391
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fake-timers-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -731,8 +731,8 @@ function withGlobal(_global) {
var originalSetTimeout = _global.setImmediate || _global.setTimeout;

/**
* @param {Date|number} start the system time - non-integer values are floored
* @param {number} loopLimit maximum number of timers that will be run when calling runAll()
* @param {Date|number} [start] the system time - non-integer values are floored
* @param {number} [loopLimit] maximum number of timers that will be run when calling runAll()
* @returns {Clock}
*/
function createClock(start, loopLimit) {
Expand Down Expand Up @@ -1309,7 +1309,7 @@ function withGlobal(_global) {
/* eslint-disable complexity */

/**
* @param {Config=} config Optional config
* @param {Config=} [config] Optional config
* @returns {Clock}
*/
function install(config) {
Expand Down

0 comments on commit cdd0391

Please sign in to comment.