Skip to content

Commit

Permalink
[types] Fix optionals in interpolation.js
Browse files Browse the repository at this point in the history
Makes the `options` parameters' types all optional, as they should be.
  • Loading branch information
MysteryBlokHed committed Jun 28, 2024
1 parent 0259276 commit c99665c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/interpolation.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ import deltaE from "./deltaE.js";
* @overload
* @param {ColorTypes} c1
* @param {ColorTypes} c2
* @param {MixOptions} o
* @param {MixOptions} [options]
* @returns {PlainColorObject}
*/
/**
* @overload
* @param {ColorTypes} c1
* @param {ColorTypes} c2
* @param {number} p
* @param {MixOptions} o
* @param {MixOptions} [options]
* @returns {PlainColorObject}
*/
export function mix (c1, c2, p = .5, o = {}) {
Expand All @@ -53,13 +53,13 @@ export function mix (c1, c2, p = .5, o = {}) {
* @overload
* @param {ColorTypes} c1
* @param {ColorTypes} c2
* @param {StepsOptions} options
* @param {StepsOptions} [options]
* @returns {PlainColorObject[]}
*/
/**
* @overload
* @param {Range} range
* @param {StepsOptions} options
* @param {StepsOptions} [options]
* @returns {PlainColorObject[]}
*/
export function steps (c1, c2, options = {}) {
Expand Down Expand Up @@ -142,14 +142,14 @@ export function steps (c1, c2, options = {}) {
* (and thus may not return the results you expect)
* @overload
* @param {Range} range
* @param {RangeOptions} options
* @param {RangeOptions} [options]
* @returns {Range}
*/
/**
* @overload
* @param {ColorTypes} color1
* @param {ColorTypes} color2
* @param {RangeOptions & Record<string, any>} options
* @param {RangeOptions & Record<string, any>} [options]
* @returns {Range}
*/
export function range (color1, color2, options = {}) {
Expand Down

0 comments on commit c99665c

Please sign in to comment.