Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Make CompileOptions be an interface
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Dec 16, 2019
1 parent cb77c77 commit ffe0931
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,11 @@ namespace degenerator {
export interface DegeneratorOptions {
output?: string;
}
export type CompileOptions = DegeneratorOptions &
RunningScriptOptions & {
sandbox?: Context;
};
export interface CompileOptions
extends DegeneratorOptions,
RunningScriptOptions {
sandbox?: Context;
}
export function compile<T>(
code: string,
returnName: string,
Expand Down

0 comments on commit ffe0931

Please sign in to comment.