@@ -45,8 +45,8 @@ export interface PositiveExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
45
45
*
46
46
* **_Unexpected failure_**? For a more permissive but less performant
47
47
* check that accommodates for equivalent intersection types,
48
- * use {@linkcode branded ` .branded.toEqualTypeOf()` }.
49
- * @see {@link https://github.com/mmkal/expect-type#why-is-my-assertion-failing The documentation for details }.
48
+ * use {@linkcode branded | .branded.toEqualTypeOf()}.
49
+ * @see {@link https://github.com/mmkal/expect-type#why-is-my-assertion-failing | The documentation for details }.
50
50
*
51
51
* @example
52
52
* <caption>Using generic type argument syntax</caption>
@@ -86,8 +86,8 @@ export interface PositiveExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
86
86
*
87
87
* **_Unexpected failure_**? For a more permissive but less performant
88
88
* check that accommodates for equivalent intersection types,
89
- * use {@linkcode branded ` .branded.toEqualTypeOf()` }.
90
- * @see {@link https://github.com/mmkal/expect-type#why-is-my-assertion-failing The documentation for details }.
89
+ * use {@linkcode branded | .branded.toEqualTypeOf()}.
90
+ * @see {@link https://github.com/mmkal/expect-type#why-is-my-assertion-failing | The documentation for details }.
91
91
*
92
92
* @example
93
93
* <caption>Using generic type argument syntax</caption>
@@ -119,7 +119,7 @@ export interface PositiveExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
119
119
120
120
toMatchTypeOf : {
121
121
/**
122
- * A less strict version of {@linkcode toEqualTypeOf ` .toEqualTypeOf()` }
122
+ * A less strict version of {@linkcode toEqualTypeOf | .toEqualTypeOf()}
123
123
* that allows for extra properties.
124
124
* This is roughly equivalent to an `extends` constraint
125
125
* in a function type argument.
@@ -146,7 +146,7 @@ export interface PositiveExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
146
146
) : true
147
147
148
148
/**
149
- * A less strict version of {@linkcode toEqualTypeOf ` .toEqualTypeOf()` }
149
+ * A less strict version of {@linkcode toEqualTypeOf | .toEqualTypeOf()}
150
150
* that allows for extra properties.
151
151
* This is roughly equivalent to an `extends` constraint
152
152
* in a function type argument.
@@ -205,7 +205,7 @@ export interface PositiveExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
205
205
206
206
/**
207
207
* Intersection types can cause issues with
208
- * {@linkcode toEqualTypeOf ` .toEqualTypeOf()` }:
208
+ * {@linkcode toEqualTypeOf | .toEqualTypeOf()}:
209
209
* ```ts
210
210
* // ❌ The following line doesn't compile, even though the types are arguably the same.
211
211
* expectTypeOf<{ a: 1 } & { b: 2 }>().toEqualTypeOf<{ a: 1; b: 2 }>()
@@ -216,7 +216,7 @@ export interface PositiveExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
216
216
* __Note__: This comes at a performance cost, and can cause the compiler
217
217
* to 'give up' if used with excessively deep types, so use sparingly.
218
218
*
219
- * @see {@link https://github.com/mmkal/expect-type/pull/21 Reference }
219
+ * @see {@link https://github.com/mmkal/expect-type/pull/21 | Reference }
220
220
*/
221
221
branded : {
222
222
/**
@@ -228,8 +228,8 @@ export interface PositiveExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
228
228
*
229
229
* **_Unexpected failure_**? For a more permissive but less performant
230
230
* check that accommodates for equivalent intersection types,
231
- * use {@linkcode PositiveExpectTypeOf.branded ` .branded.toEqualTypeOf()` }.
232
- * @see {@link https://github.com/mmkal/expect-type#why-is-my-assertion-failing The documentation for details }.
231
+ * use {@linkcode PositiveExpectTypeOf.branded | .branded.toEqualTypeOf()}.
232
+ * @see {@link https://github.com/mmkal/expect-type#why-is-my-assertion-failing | The documentation for details }.
233
233
*
234
234
* @example
235
235
* <caption>Using generic type argument syntax</caption>
@@ -274,8 +274,8 @@ export interface NegativeExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
274
274
*
275
275
* **_Unexpected failure_**? For a more permissive but less performant
276
276
* check that accommodates for equivalent intersection types,
277
- * use {@linkcode PositiveExpectTypeOf.branded ` .branded.toEqualTypeOf()` }.
278
- * @see {@link https://github.com/mmkal/expect-type#why-is-my-assertion-failing The documentation for details }.
277
+ * use {@linkcode PositiveExpectTypeOf.branded | .branded.toEqualTypeOf()}.
278
+ * @see {@link https://github.com/mmkal/expect-type#why-is-my-assertion-failing | The documentation for details }.
279
279
*
280
280
* @example
281
281
* <caption>Using generic type argument syntax</caption>
@@ -311,8 +311,8 @@ export interface NegativeExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
311
311
*
312
312
* **_Unexpected failure_**? For a more permissive but less performant
313
313
* check that accommodates for equivalent intersection types,
314
- * use {@linkcode PositiveExpectTypeOf.branded ` .branded.toEqualTypeOf()` }.
315
- * @see {@link https://github.com/mmkal/expect-type#why-is-my-assertion-failing The documentation for details }.
314
+ * use {@linkcode PositiveExpectTypeOf.branded | .branded.toEqualTypeOf()}.
315
+ * @see {@link https://github.com/mmkal/expect-type#why-is-my-assertion-failing | The documentation for details }.
316
316
*
317
317
* @example
318
318
* <caption>Using generic type argument syntax</caption>
@@ -339,7 +339,7 @@ export interface NegativeExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
339
339
toMatchTypeOf : {
340
340
/**
341
341
* A less strict version of
342
- * {@linkcode PositiveExpectTypeOf.toEqualTypeOf ` .toEqualTypeOf()` }
342
+ * {@linkcode PositiveExpectTypeOf.toEqualTypeOf | .toEqualTypeOf()}
343
343
* that allows for extra properties.
344
344
* This is roughly equivalent to an `extends` constraint
345
345
* in a function type argument.
@@ -367,7 +367,7 @@ export interface NegativeExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
367
367
368
368
/**
369
369
* A less strict version of
370
- * {@linkcode PositiveExpectTypeOf.toEqualTypeOf ` .toEqualTypeOf()` }
370
+ * {@linkcode PositiveExpectTypeOf.toEqualTypeOf | .toEqualTypeOf()}
371
371
* that allows for extra properties.
372
372
* This is roughly equivalent to an `extends` constraint
373
373
* in a function type argument.
@@ -502,7 +502,7 @@ export interface BaseExpectTypeOf<Actual, Options extends {positive: boolean}> {
502
502
* Checks whether a function is callable with the given parameters.
503
503
*
504
504
* __Note__: You cannot negate this assertion with
505
- * {@linkcode PositiveExpectTypeOf.not ` .not` }, you need to use
505
+ * {@linkcode PositiveExpectTypeOf.not | .not}, you need to use
506
506
* `ts-expect-error` instead.
507
507
*
508
508
* @example
@@ -514,7 +514,7 @@ export interface BaseExpectTypeOf<Actual, Options extends {positive: boolean}> {
514
514
*
515
515
* __Known Limitation__: This assertion will likely fail if you try to use it
516
516
* with a generic function or an overload.
517
- * @see {@link https://github.com/mmkal/expect-type/issues/50 This issue } for an example and a workaround.
517
+ * @see {@link https://github.com/mmkal/expect-type/issues/50 | This issue } for an example and a workaround.
518
518
*
519
519
* @param args - The arguments to check for callability.
520
520
* @returns `true`.
@@ -855,6 +855,7 @@ export type _ExpectTypeOf = {
855
855
* form of a reference or generic type parameter.
856
856
*
857
857
* @example
858
+ * ```ts
858
859
* import { foo, bar } from '../foo'
859
860
* import { expectTypeOf } from 'expect-type'
860
861
*
@@ -867,6 +868,7 @@ export type _ExpectTypeOf = {
867
868
* expectTypeOf(bar).parameter(0).toBeString()
868
869
* expectTypeOf(bar).returns.not.toBeAny()
869
870
* })
871
+ * ```
870
872
*
871
873
* @description
872
874
* See the [full docs](https://npmjs.com/package/expect-type#documentation) for lots more examples.
0 commit comments