solc-js icon indicating copy to clipboard operation
solc-js copied to clipboard

Change compile to take in a JS object rather than a string.

Open MicahZoltu opened this issue 5 years ago • 0 comments

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.

MicahZoltu avatar May 05 '19 04:05 MicahZoltu