solc-js
solc-js copied to clipboard
Change compile to take in a JS object rather than a string.
The compile
function takes in a string, when really it wants a well described JS object. In JS, this isn't much of a difference but when using something like TypeScript or Flow the difference is pretty significant as one gives you compile-time errors/warnings and auto-complete while the other (string input) gives you nothing useful.
An initial pass at the TS definitions can be found at https://github.com/MicahZoltu/solc-js/blob/ts-definitions/index.d.ts and discussion can be found at #205.