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

[feature request] allow custom encoding of buildin types #212

Open
StarlightIbuki opened this issue Aug 2, 2022 · 0 comments
Open

[feature request] allow custom encoding of buildin types #212

StarlightIbuki opened this issue Aug 2, 2022 · 0 comments

Comments

@StarlightIbuki
Copy link

StarlightIbuki commented Aug 2, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants