Comparing version 0.1.15 to 0.1.16
{ | ||
"name": "typa", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"description": "JavaScript type checker utility", | ||
@@ -5,0 +5,0 @@ "main": "dist/typa.min.js", |
@@ -62,13 +62,13 @@ Typa | ||
``` | ||
const myString = 'this is a string' | ||
const myArray = 'this is also a string, not an array' | ||
const myString = 'this is a string' | ||
const myArray = 'this is also a string, not an array' | ||
const fn1 = (() => console.log('hello')) | ||
const fn2 = (() => console.log('goodbye')) | ||
const fn1 = (() => console.log('hello')) | ||
const fn2 = (() => console.log('goodbye')) | ||
is.typa('str', myString, fn1, fn2) | ||
// => 'hello' | ||
is.typa('str', myString, fn1, fn2) | ||
// => 'hello' | ||
is.typa('arr', myArray, fn1, fn2) | ||
// => 'goodbye' | ||
is.typa('arr', myArray, fn1, fn2) | ||
// => 'goodbye' | ||
``` | ||
@@ -75,0 +75,0 @@ |
154419