foobarF
Denoβ€’13mo agoβ€’
3 replies
foobar

deno publish / slow type

When I try to publish a package on JSR, I have the foolowing error

TS2304 [ERROR]: Cannot find name 'down'.
 */ export const transformScale = (...[monetaObject, newScale, divide = down]: TransformScaleParams): Moneta =>({} as never);


Is it normal ? down is declared

Source code : https://github.com/b-life-org/moneta

import { computeBase, Moneta } from "../../mod.ts";
import { DivideOperation } from "../types/types.ts";
import { down } from "../divide/down.ts";

export type TransformScaleParams = readonly [
  dineroObject: Moneta,
  newScale: number,
  divide?: DivideOperation,
];

export const transformScale = (
  ...[monetaObject, newScale, divide = down]: TransformScaleParams
): Moneta => {}
GitHub
Moneta lets you create, calculate, and format money safely in JavaScript and TypeScript. - b-life-org/moneta
Was this page helpful?