Skip to content

Commit 0160ba3

Browse files
committed
add js functions to accepted callback constructor types
1 parent 2fb7c5f commit 0160ba3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/python.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ export type PythonConvertible =
7777
| { [key: string]: PythonConvertible }
7878
| Map<PythonConvertible, PythonConvertible>
7979
| Set<PythonConvertible>
80-
| Callback;
80+
| Callback
81+
| ((...args: any[]) => any); // js function;
8182

8283
export type PythonJSCallback = (
8384
kwargs: any,

0 commit comments

Comments
 (0)