We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 108b048 commit 0de9e36Copy full SHA for 0de9e36
index.d.ts
@@ -0,0 +1,5 @@
1
+declare module "solc" {
2
+ export type ReadCallbackResult = { contents: string } | { error: string };
3
+ export type ReadCallback = (path: string) => ReadCallbackResult;
4
+ export function compile(input: string, readCallback?: ReadCallback): string;
5
+}
package.json
@@ -3,6 +3,7 @@
"version": "0.5.11",
"description": "Solidity compiler",
"main": "index.js",
6
+ "types": "index.d.ts",
7
"bin": {
8
"solcjs": "solcjs"
9
},
0 commit comments