expect-type
Advanced tools
Comparing version 0.7.11 to 0.8.0
@@ -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", |
# 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 |
{ | ||
"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
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
36343
386