Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

expect-type

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expect-type - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

12

CHANGELOG.json

@@ -5,2 +5,14 @@ {

{
"version": "0.9.1",
"tag": "expect-type_v0.9.1",
"date": "Thu, 26 Nov 2020 17:06:36 GMT",
"comments": {
"patch": [
{
"comment": "fix: test explicitly for `never` in `Extends` (#216)"
}
]
}
},
{
"version": "0.9.0",

@@ -7,0 +19,0 @@ "tag": "expect-type_v0.9.0",

9

CHANGELOG.md
# Change Log - expect-type
This log was last generated on Tue, 27 Oct 2020 16:18:39 GMT and should not be manually modified.
This log was last generated on Thu, 26 Nov 2020 17:06:36 GMT and should not be manually modified.
## 0.9.1
Thu, 26 Nov 2020 17:06:36 GMT
### Patches
- fix: test explicitly for `never` in `Extends` (#216)
## 0.9.0

@@ -6,0 +13,0 @@ Tue, 27 Oct 2020 16:18:39 GMT

2

dist/index.d.ts

@@ -45,3 +45,3 @@ export declare type Not<T extends boolean> = T extends true ? false : true;

declare type ReadonlyEquivalent<X, Y> = Extends<(<T>() => T extends X ? true : false), (<T>() => T extends Y ? true : false)>;
export declare type Extends<L, R> = L extends R ? true : false;
export declare type Extends<L, R> = IsNever<L> extends true ? IsNever<R> : L extends R ? true : false;
export declare type StrictExtends<L, R> = Extends<DeepBrand<L>, DeepBrand<R>>;

@@ -48,0 +48,0 @@ export declare type Equal<Left, Right> = And<[StrictExtends<Left, Right>, StrictExtends<Right, Left>]>;

{
"name": "expect-type",
"version": "0.9.0",
"version": "0.9.1",
"keywords": [

@@ -5,0 +5,0 @@ "typescript",

@@ -131,2 +131,5 @@ # expect-type

expectTypeOf<never>().toBeNever()
// @ts-expect-error
expectTypeOf<never>().toBeNumber()
```

@@ -341,2 +344,2 @@

- built into existing tooling. No extra build step, cli tool, IDE extension, or lint plugin is needed. Just import the function and start writing tests. Failures will be at compile time - they'll appear in your IDE and when you run `tsc`.
- small implementation with no dependencies. <200 lines of code - [take a look!](https://github.com/mmkal/ts/tree/d56aab3/packages/expect-type/src/index.ts)
- small implementation with no dependencies. <200 lines of code - [take a look!](https://github.com/mmkal/ts/tree/a3d6001/packages/expect-type/src/index.ts)

@@ -1,2 +0,1 @@

/* eslint-disable @typescript-eslint/no-unused-vars */
export type Not<T extends boolean> = T extends true ? false : true

@@ -65,3 +64,3 @@ export type Or<Types extends boolean[]> = Types[number] extends false ? false : true

export type Extends<L, R> = L extends R ? true : false
export type Extends<L, R> = IsNever<L> extends true ? IsNever<R> : L extends R ? true : false
export type StrictExtends<L, R> = Extends<DeepBrand<L>, DeepBrand<R>>

@@ -68,0 +67,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc