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

Commit e0b9fc8

Browse files
committed
Add any default return type to compile()
1 parent 852043f commit e0b9fc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ namespace degenerator {
130130
export interface CompileOptions extends RunningScriptOptions {
131131
sandbox?: Context;
132132
}
133-
export function compile<R, A extends any[] = []>(
133+
export function compile<R = any, A extends any[] = []>(
134134
code: string,
135135
returnName: string,
136136
names: DegeneratorNames,

0 commit comments

Comments
 (0)