Skip to content

Commit

Permalink
Merge 13a1268 into 414dea6
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahZoltu committed Dec 3, 2018
2 parents 414dea6 + 13a1268 commit 5515fb4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
declare module "solc" {
export function version(): string;
export function semver(): string;
export function license(): string;

export let features: {
legacySingleInput: boolean,
multipleInputs: boolean,
importCallback: boolean,
nativeStandardJSON: boolean,
};

export type ReadCallbackResult = { contents: string } | { error: string };
export type ReadCallback = (path: string) => ReadCallbackResult;
export function compile(input: string, readCallback?: ReadCallback): string;
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.5.1",
"description": "Solidity compiler",
"main": "index.js",
"types": "index.d.ts",
"bin": {
"solcjs": "solcjs"
},
Expand Down

0 comments on commit 5515fb4

Please sign in to comment.