@@ -176,7 +176,7 @@ export interface PositiveExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
176
176
* @example
177
177
* <caption>check that properties exist</caption>
178
178
* ```ts
179
- * const obj = {a: 1, b: ''}
179
+ * const obj = { a: 1, b: '' }
180
180
*
181
181
* expectTypeOf(obj).toHaveProperty('a')
182
182
*
@@ -395,7 +395,7 @@ export interface NegativeExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
395
395
* @example
396
396
* <caption>check that properties exist</caption>
397
397
* ```ts
398
- * const obj = {a: 1, b: ''}
398
+ * const obj = { a: 1, b: '' }
399
399
*
400
400
* expectTypeOf(obj).toHaveProperty('a')
401
401
*
@@ -519,9 +519,9 @@ export interface BaseExpectTypeOf<Actual, Options extends {positive: boolean}> {
519
519
* @returns `true`.
520
520
*/
521
521
toBeCallableWith : Options [ 'positive' ] extends true
522
- ? < A extends OverloadParameters < Actual > > (
523
- ...args : A
524
- ) => ExpectTypeOf < OverloadsNarrowedByParameters < Actual , A > , Options >
522
+ ? < Args extends OverloadParameters < Actual > > (
523
+ ...args : Args
524
+ ) => ExpectTypeOf < OverloadsNarrowedByParameters < Actual , Args > , Options >
525
525
: never
526
526
527
527
/**
@@ -542,7 +542,7 @@ export interface BaseExpectTypeOf<Actual, Options extends {positive: boolean}> {
542
542
* @returns `true`.
543
543
*/
544
544
toBeConstructibleWith : Options [ 'positive' ] extends true
545
- ? < A extends ConstructorOverloadParameters < Actual > > ( ...args : A ) => true
545
+ ? < Args extends ConstructorOverloadParameters < Actual > > ( ...args : Args ) => true
546
546
: never
547
547
548
548
/**
@@ -854,12 +854,12 @@ export type _ExpectTypeOf = {
854
854
* form of a reference or generic type parameter.
855
855
*
856
856
* @example
857
- * import {foo, bar} from '../foo'
858
- * import {expectTypeOf} from 'expect-type'
857
+ * import { foo, bar } from '../foo'
858
+ * import { expectTypeOf } from 'expect-type'
859
859
*
860
860
* test('foo types', () => {
861
- * // make sure `foo` has type {a: number}
862
- * expectTypeOf(foo).toMatchTypeOf({a: 1})
861
+ * // make sure `foo` has type { a: number }
862
+ * expectTypeOf(foo).toMatchTypeOf({ a: 1 })
863
863
* expectTypeOf(foo).toHaveProperty('a').toBeNumber()
864
864
*
865
865
* // make sure `bar` is a function taking a string:
0 commit comments