Skip to content

Commit

Permalink
fix(transducers): add missing type anno (TS4.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Mar 3, 2021
1 parent 89827bb commit 7ced9be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/transducers/src/iter/curve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@
* @param steps -
* @param falloff -
*/
export function* curve(start: number, end: number, steps = 10, rate = 0.1) {
export function* curve(
start: number,
end: number,
steps = 10,
rate = 0.1
): IterableIterator<number> {
const c = Math.exp(
-Math.log((Math.abs(end - start) + rate) / rate) / steps
);
Expand Down

0 comments on commit 7ced9be

Please sign in to comment.