Skip to content

Commit 904385e

Browse files
committed
Add missing types
1 parent 8019e93 commit 904385e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

index.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ declare module "solc" {
33
export function semver(): string;
44
export function license(): string;
55

6+
export let lowlevel: {
7+
compileSingle: function(input: string): string;
8+
compileMulti: function(input: string): string;
9+
compileCallback: function(input: string): string;
10+
compileStandard: function(input: string): string;
11+
};
12+
613
export let features: {
714
legacySingleInput: boolean,
815
multipleInputs: boolean,
@@ -12,5 +19,6 @@ declare module "solc" {
1219

1320
export type ReadCallbackResult = { contents: string } | { error: string };
1421
export type ReadCallback = (path: string) => ReadCallbackResult;
15-
export function compile(input: string, readCallback?: ReadCallback): string;
22+
export type Callbacks = { import: ReadCallback };
23+
export function compile(input: string, readCallback?: Callbacks | ReadCallback): string;
1624
}

0 commit comments

Comments
 (0)