Skip to content

Commit 83740d8

Browse files
committed
docs: add types to eval in context params
1 parent caaa1c5 commit 83740d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/evalInContext.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* evaluate es5 code in the browser
33
* and return value if there s a return statement
4-
* @param {*} code the body of the funtion to exectute
5-
* @param {*} require the fake function require
4+
* @param {String} code the body of the funtion to execute
5+
* @param {Function} require the fake function require
66
*/
77
export default function evalInContext(code, require) {
88
// eslint-disable-next-line no-new-func

0 commit comments

Comments
 (0)