Skip to content

Commit

Permalink
fix(strings): float type decl
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Aug 8, 2018
1 parent 0f2cf77 commit b2ebbfc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/strings/src/float.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ import { Stringer } from "./api";
* @param len number of fractional digits
* @kind function
*/
export const float = memoizeJ(
(prec: number): Stringer<number> =>
(x: number) => x.toFixed(prec)
);
export const float: (prec: number) => Stringer<number> =
memoizeJ((prec) => (x: number) => x.toFixed(prec));

0 comments on commit b2ebbfc

Please sign in to comment.