Skip to content

Commit d02996b

Browse files
committed
Add more of the public functions to the TypeScript definition
1 parent 0de9e36 commit d02996b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

index.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
declare module "solc" {
2+
export function version(): string;
3+
export function semver(): string;
4+
export function license(): string;
5+
6+
export let features: {
7+
legacySingleInput: boolean,
8+
multipleInputs: boolean,
9+
importCallback: boolean,
10+
nativeStandardJSON: boolean,
11+
};
12+
213
export type ReadCallbackResult = { contents: string } | { error: string };
314
export type ReadCallback = (path: string) => ReadCallbackResult;
415
export function compile(input: string, readCallback?: ReadCallback): string;

0 commit comments

Comments
 (0)