Open StarlightIbuki opened 2 years ago
It would be helpful to allow this:
pb.custom_encode('bool', function (v) return v and not v == "false" end
(I'm not sure if hook does what this does so I wrote custom_encode, and currently pb refuses to hook build-in types)
hook
custom_encode
It would be helpful to allow this:
(I'm not sure if
hook
does what this does so I wrotecustom_encode
, and currently pb refuses to hook build-in types)