Skip to content

Conversation

@sgoumaz
Copy link

@sgoumaz sgoumaz commented Apr 29, 2013

New environment option "typeCoercionFns" accepting an object with functions for coercing values to expected types (typically converting strings to booleans or numbers). The functions' names must match their corresponding type (e.g. "boolean" or "number").

See "Type Coercion Option" test at the end of tests/tests3.js for example usage.

This actually implements #5.

@sgoumaz
Copy link
Author

sgoumaz commented Apr 29, 2013

Note: please use ?w=1 in the URL when checking out the diff to ignore whitespace differences (some lines ending with spaces have been trimmed).

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant