Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Remove CompileFunction type and add sources method to Compiler interface
Browse files Browse the repository at this point in the history
  • Loading branch information
eggplantzzz committed Sep 15, 2020
1 parent 2e40cf9 commit a778f9a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/compile-common/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,14 @@ export interface WorkflowCompileResult {
contracts: CompiledContract[];
}

export type CompileFunction = ({
sources,
options
}: {
sources: object;
options: object;
}) => Promise<CompilerResult>;

export interface Compiler {
all: (options: object) => Promise<CompilerResult>;
necessary: (options: object) => Promise<CompilerResult>;
sources: ({
sources,
options
}: {
sources: string[];
options: object;
}) => Promise<CompilerResult>;
}

0 comments on commit a778f9a

Please sign in to comment.