Skip to content

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

@MicahZoltu

Description

@MicahZoltu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions