Comparing version
@@ -88,3 +88,3 @@ var canReflect = require("can-reflect"); | ||
function check(Type, val) { | ||
throw new Error(`Type value '${val}' is not of type ${canReflect.getName(Type)}.`); | ||
throw new Error(`Type value ${typeof val === "string" ? '"' + val + '"' : val} is not of type ${canReflect.getName(Type)}.`); | ||
} | ||
@@ -91,0 +91,0 @@ |
{ | ||
"name": "can-type", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "Type definitions", | ||
@@ -5,0 +5,0 @@ "homepage": "https://canjs.com/doc/can-type.html", |
23825
0.18%