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

Commit

Permalink
Add any default return type to compile()
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Jul 12, 2021
1 parent 852043f commit e0b9fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ namespace degenerator {
export interface CompileOptions extends RunningScriptOptions {
sandbox?: Context;
}
export function compile<R, A extends any[] = []>(
export function compile<R = any, A extends any[] = []>(
code: string,
returnName: string,
names: DegeneratorNames,
Expand Down

0 comments on commit e0b9fc8

Please sign in to comment.