Comparing version 2.0.0-beta.6 to 2.0.0
{ | ||
"name": "shades", | ||
"version": "2.0.0-beta.6", | ||
"version": "2.0.0", | ||
"description": "Lens-like functionality with a lodash-style interface.", | ||
@@ -5,0 +5,0 @@ "main": "lib/bundle.js", |
@@ -80,8 +80,2 @@ import { | ||
mod("freinds", toString)(s => s.toUpperCase())(user); // $ExpectError | ||
into("a")({ a: 10 }); // $ExpectType number | ||
into("b")({ a: 10 }); // $ExpectError | ||
into({ a: 10 })({ a: 10 }); // $ExpectType boolean | ||
into({ a: 10 })({ b: 10 }); // $ExpectError | ||
into((x: number) => x + 1)(10); // $ExpectType number | ||
filter((user: User) => user.friends.length > 0)(users); // $ExpectType User[] | ||
@@ -209,14 +203,2 @@ filter((user: User) => user.name)(byName); // $ExpectType { [name: string]: User; } | ||
add(1)(3); // $ExpectType number | ||
add(1)("s"); // $ExpectError | ||
sub(1)(3); // $ExpectType number | ||
sub(1)("s"); // $ExpectError | ||
inc(1); // $ExpectType number | ||
inc(""); // $ExpectError | ||
dec(1); // $ExpectType number | ||
dec(""); // $ExpectError | ||
identity(10); // $ExpectType 10 | ||
@@ -264,2 +246,8 @@ identity("butts"); // $ExpectType "butts" | ||
into("a")({ a: 10 }); // $ExpectType number | ||
into("b")({ a: 10 }); // $ExpectError | ||
into({ a: 10 })({ a: 10 }); // $ExpectType boolean | ||
into({ a: 10 })({ b: 10 }); // $ExpectError | ||
into((x: number) => x + 1)(10); // $ExpectType number | ||
has({ a: 1 }); // $ExpectType (obj: HasPattern<{ a: number; }>) => boolean | ||
@@ -295,2 +283,14 @@ has({ a: false }); // $ExpectType (obj: HasPattern<{ a: boolean; }>) => boolean | ||
add(1)(3); // $ExpectType number | ||
add(1)("s"); // $ExpectError | ||
sub(1)(3); // $ExpectType number | ||
sub(1)("s"); // $ExpectError | ||
inc(1); // $ExpectType number | ||
inc(""); // $ExpectError | ||
dec(1); // $ExpectType number | ||
dec(""); // $ExpectError | ||
includes("hello")("hello"); // $ExpectType boolean | ||
@@ -297,0 +297,0 @@ includes("hello")(false); // $ExpectError |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
4787857