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.7.11 to 0.8.0

12

CHANGELOG.json

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

{
"version": "0.8.0",
"tag": "expect-type_v0.8.0",
"date": "Mon, 05 Oct 2020 22:38:33 GMT",
"comments": {
"minor": [
{
"comment": "Undefined union fix (#188)"
}
]
}
},
{
"version": "0.7.11",

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

9

CHANGELOG.md
# Change Log - expect-type
This log was last generated on Thu, 01 Oct 2020 14:48:13 GMT and should not be manually modified.
This log was last generated on Mon, 05 Oct 2020 22:38:33 GMT and should not be manually modified.
## 0.8.0
Mon, 05 Oct 2020 22:38:33 GMT
### Minor changes
- Undefined union fix (#188)
## 0.7.11

@@ -6,0 +13,0 @@ Thu, 01 Oct 2020 14:48:13 GMT

@@ -65,4 +65,10 @@ export declare type Not<T extends boolean> = T extends true ? false : true;

toBeNullable: (...MISMATCH: MismatchArgs<Not<Equal<Actual, NonNullable<Actual>>>, B>) => true;
toMatchTypeOf: <Expected>(expected?: Expected, ...MISMATCH: MismatchArgs<Extends<Actual, Expected>, B>) => true;
toEqualTypeOf: <Expected>(expected?: Expected, ...MISMATCH: MismatchArgs<Equal<Actual, Expected>, B>) => true;
toMatchTypeOf: {
<Expected>(...MISMATCH: MismatchArgs<Extends<Actual, Expected>, B>): true;
<Expected>(expected: Expected, ...MISMATCH: MismatchArgs<Extends<Actual, Expected>, B>): true;
};
toEqualTypeOf: {
<Expected>(...MISMATCH: MismatchArgs<Equal<Actual, Expected>, B>): true;
<Expected>(expected: Expected, ...MISMATCH: MismatchArgs<Equal<Actual, Expected>, B>): true;
};
toBeCallableWith: B extends true ? (...args: Params<Actual>) => true : never;

@@ -80,2 +86,6 @@ toBeConstructibleWith: B extends true ? (...args: ConstructorParams<Actual>) => true : never;

}
export declare type _ExpectTypeOf = {
<Actual>(actual: Actual): ExpectTypeOf<Actual, true>;
<Actual>(): ExpectTypeOf<Actual, true>;
};
/**

@@ -103,4 +113,4 @@ * Similar to Jest's `expect`, but with type-awareness.

*/
export declare const expectTypeOf: <Actual>(actual?: Actual | undefined) => ExpectTypeOf<Actual, true>;
export declare const expectTypeOf: _ExpectTypeOf;
export {};
//# sourceMappingURL=index.d.ts.map

2

package.json
{
"name": "expect-type",
"version": "0.7.11",
"version": "0.8.0",
"keywords": [

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

@@ -93,4 +93,10 @@ /* eslint-disable @typescript-eslint/no-unused-vars */

toBeNullable: (...MISMATCH: MismatchArgs<Not<Equal<Actual, NonNullable<Actual>>>, B>) => true
toMatchTypeOf: <Expected>(expected?: Expected, ...MISMATCH: MismatchArgs<Extends<Actual, Expected>, B>) => true
toEqualTypeOf: <Expected>(expected?: Expected, ...MISMATCH: MismatchArgs<Equal<Actual, Expected>, B>) => true
toMatchTypeOf: {
<Expected>(...MISMATCH: MismatchArgs<Extends<Actual, Expected>, B>): true
<Expected>(expected: Expected, ...MISMATCH: MismatchArgs<Extends<Actual, Expected>, B>): true
}
toEqualTypeOf: {
<Expected>(...MISMATCH: MismatchArgs<Equal<Actual, Expected>, B>): true
<Expected>(expected: Expected, ...MISMATCH: MismatchArgs<Equal<Actual, Expected>, B>): true
}
toBeCallableWith: B extends true ? (...args: Params<Actual>) => true : never

@@ -113,2 +119,7 @@ toBeConstructibleWith: B extends true ? (...args: ConstructorParams<Actual>) => true : never

export type _ExpectTypeOf = {
<Actual>(actual: Actual): ExpectTypeOf<Actual, true>;
<Actual>(): ExpectTypeOf<Actual, true>
}
/**

@@ -136,3 +147,3 @@ * Similar to Jest's `expect`, but with type-awareness.

*/
export const expectTypeOf = <Actual>(actual?: Actual): ExpectTypeOf<Actual, true> => {
export const expectTypeOf: _ExpectTypeOf = <Actual>(actual?: Actual): ExpectTypeOf<Actual, true> => {
const nonFunctionProperties = [

@@ -139,0 +150,0 @@ 'parameters',

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