typed-function
Advanced tools
Changelog
2018-07-28, version 1.1.0
signature
.Changelog
2018-07-04, version 1.0.4
addType
will insert new types before the Object
test
since the Object
test also matches arrays and classes.devDependencies
.Changelog
2018-03-17, version 1.0.3
Array.find
, so typed-function is
directly usable on any ES5 compatible JavaScript engine (like IE11).Changelog
2018-03-17, version 1.0.2
name
property of a function.Changelog
2018-02-20, version 1.0.0
Version 1.0.0 is rewritten from scratch. The API is the same, though generated error messages may differ slightly.
Version 1.0.0 no longer uses eval
under the hood to achieve good
performance. This reduces security risks and makes typed-functions
easier to debug.
Type Object
is no longer treated specially from other types. This
means that the test for Object
must not give false positives for
types like Array
, Date
, or class instances.
In version 1.0.0, support for browsers like IE9, IE10 is dropped, though typed-function can still work when using es5 and es6 polyfills.
Changelog
2018-01-24, version 0.10.7
data.actual
in a TypeError
message containing
the type index instead of the actual type of the argument.Changelog
2017-11-18, version 0.10.6