Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💁 API to make objects available inside JS #1124

Merged
merged 16 commits into from
Apr 27, 2021
Prev Previous commit
Next Next commit
whitespace
fonsp committed Apr 26, 2021
commit 0319de46241562d64028523733476fd1858b9d72
4 changes: 2 additions & 2 deletions src/runner/PlutoRunner.jl
Original file line number Diff line number Diff line change
@@ -1240,8 +1240,8 @@ const Packable = Union{Nothing,Missing,String,Int64,Int32,Int16,Int8,UInt64,UInt
packable(::Packable) = true
packable(::Any) = false
packable(::Vector{<:Packable}) = true
packable(xs::Vector) = all(packable, xs)
packable(d::Dict{<:Packable,<:Packable}) = true
packable(::Dict{<:Packable,<:Packable}) = true
packable(x::Vector) = all(packable, x)
packable(d::Dict) = all(packable, keys(d)) && all(packable, values(d))
packable(t::Tuple) = all(packable, t)
packable(t::NamedTuple) = all(packable, t)