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 5c1280c commit 40e7e59Copy full SHA for 40e7e59
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.14",
"description": "Solidity compiler",
"main": "index.js",
6
+ "types": "index.d.ts",
7
"bin": {
8
"solcjs": "solcjs"
9
},
0 commit comments