intertype
Advanced tools
Comparing version 0.111.0 to 0.112.0
@@ -229,2 +229,10 @@ (function() { | ||
//......................................................................................................... | ||
declare.class({ | ||
isa: function(x) { | ||
var ref; | ||
return ((Object.prototype.toString.call(x)) === '[object Function]') && ((ref = Object.getOwnPropertyDescriptor(x, 'prototype')) != null ? ref.writable : void 0) === false; | ||
} | ||
}); | ||
// default: -> | ||
//......................................................................................................... | ||
declare.asyncfunction({ | ||
@@ -231,0 +239,0 @@ isa: function(x) { |
{ | ||
"name": "intertype", | ||
"version": "0.111.0", | ||
"version": "0.112.0", | ||
"description": "A JavaScript typechecker", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -668,2 +668,9 @@ | ||
* `isa.nonempty.text.or.regex /x/`: `false` (b/c of `nonempty` which is never `true` for `regex`es) | ||
* **[–]** all regex as value for `isa`, `declare.x /foo/` meaning `declare.x isa: ( x ) -> ( @isa.text x ) | ||
and ( /foo/.test x )` | ||
* **[–]** consider to abandon dotted syntax and use underscores instead, e.g. | ||
`validate.text_or_positive_integer 42`; this has the advantage that nested runtime name chain resolution | ||
can be replaced by looking up a single (compiled?) function (at least after the first use, which should | ||
probably cause construction of that function) | ||
* **[–]** catch errors thrown inside a type's `create()` function and convert them to validation errors | ||
@@ -670,0 +677,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
359711
1933
746