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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy