Skip to content

Commit bf62548

Browse files
authored
Merge pull request #21 from t-strings/fix-playground-in-the-latest-chrome
Fix playground in the latest chrome
2 parents c967b1f + e58c29a commit bf62548

File tree

50 files changed

+49
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+49
-24
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,5 @@ cython_debug/
174174
.pypirc
175175

176176
# Sphinx
177-
_build/
177+
_build/
178+
/public/lite/pyodide/

pyodide/Jinja2-3.1.3-py3-none-any.whl

0 Bytes
Binary file not shown.
Binary file not shown.

pyodide/attrs-23.2.0-py3-none-any.whl

0 Bytes
Binary file not shown.
Binary file not shown.

pyodide/cpp-exceptions-test-0.1.zip

0 Bytes
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.

pyodide/ffi.d.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ declare class PyProxy {
7171
* @param options
7272
* @return The JavaScript object resulting from the conversion.
7373
*/
74-
toJs({ depth, pyproxies, create_pyproxies, dict_converter, default_converter, }?: {
74+
toJs({ depth, pyproxies, create_pyproxies, dict_converter, default_converter, eager_converter, }?: {
7575
/** How many layers deep to perform the conversion. Defaults to infinite */
7676
depth?: number;
7777
/**
@@ -106,6 +106,15 @@ declare class PyProxy {
106106
* documentation of :meth:`~pyodide.ffi.to_js`.
107107
*/
108108
default_converter?: (obj: PyProxy, convert: (obj: PyProxy) => any, cacheConversion: (obj: PyProxy, result: any) => void) => any;
109+
/**
110+
* Optional callback to convert objects which gets called after ``str``,
111+
* ``int``, ``float``, ``bool``, ``None``, and ``JsProxy`` are converted but
112+
* *before* any default conversions are applied to standard data structures.
113+
*
114+
* Its arguments are the same as `dict_converter`.
115+
* See the documentation of :meth:`~pyodide.ffi.to_js`.
116+
*/
117+
eager_converter?: (obj: PyProxy, convert: (obj: PyProxy) => any, cacheConversion: (obj: PyProxy, result: any) => void) => any;
109118
}): any;
110119
}
111120
/**
Binary file not shown.

0 commit comments

Comments
 (0)