gcanti / money-ts Goto Github PK
View Code? Open in Web Editor NEWTypeScript library for type-safe and lossless encoding and manipulation of world currencies and precious metals
Home Page: https://gcanti.github.io/money-ts/
License: MIT License
TypeScript library for type-safe and lossless encoding and manipulation of world currencies and precious metals
Home Page: https://gcanti.github.io/money-ts/
License: MIT License
Returns 404 error code.
Line 3 in 4c64856
Hi,
I seem to be getting the following error:
npm install && tsc ./index.ts
up to date in 0.283s
found 0 vulnerabilities
../../../../../node_modules/monocle-ts/lib/index.d.ts(1,35): error TS2305: Module '"../../fp-ts/lib/HKT"' has no exported member 'Type'.
../../../../../node_modules/monocle-ts/lib/index.d.ts(1,41): error TS2305: Module '"../../fp-ts/lib/HKT"' has no exported member 'Type2'.
../../../../../node_modules/monocle-ts/lib/index.d.ts(1,48): error TS2305: Module '"../../fp-ts/lib/HKT"' has no exported member 'Type3'.
../../../../../node_modules/monocle-ts/lib/index.d.ts(347,32): error TS2314: Generic type 'Applicative3C<F, E>' requires 2 type argument(s).
I am new to fp-ts, but it could be a dependency issue, please correct me if I am wrong.
Do you plan it or should userland send a PR? I know the company which maybe will desperately need it.
The type of exchange
is currently
export const exchange = <S extends string, D extends string>(er: ExchangeRate<S, D>) => (d: Dense<S>): Dense<D> => {
return unsafeCoerce(d.mul(unwrap(er)))
}
The problem is that Dense<D>
also carries runtime information for D
. In the implementation above this information is not adapter, so you end up with a value thinking it's Dense<D>
when at runtime it's still Dense<S>
. You can see this in effect when trying to round the resulting Dense<D>
- it will try to look up the target unit under source format's scale table.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.