@@ -45,8 +45,8 @@ export interface PositiveExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
4545 *
4646 * **_Unexpected failure_**? For a more permissive but less performant
4747 * 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 }.
5050 *
5151 * @example
5252 * <caption>Using generic type argument syntax</caption>
@@ -86,8 +86,8 @@ export interface PositiveExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
8686 *
8787 * **_Unexpected failure_**? For a more permissive but less performant
8888 * 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 }.
9191 *
9292 * @example
9393 * <caption>Using generic type argument syntax</caption>
@@ -119,7 +119,7 @@ export interface PositiveExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
119119
120120 toMatchTypeOf : {
121121 /**
122- * A less strict version of {@linkcode toEqualTypeOf ` .toEqualTypeOf()` }
122+ * A less strict version of {@linkcode toEqualTypeOf | .toEqualTypeOf()}
123123 * that allows for extra properties.
124124 * This is roughly equivalent to an `extends` constraint
125125 * in a function type argument.
@@ -146,7 +146,7 @@ export interface PositiveExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
146146 ) : true
147147
148148 /**
149- * A less strict version of {@linkcode toEqualTypeOf ` .toEqualTypeOf()` }
149+ * A less strict version of {@linkcode toEqualTypeOf | .toEqualTypeOf()}
150150 * that allows for extra properties.
151151 * This is roughly equivalent to an `extends` constraint
152152 * in a function type argument.
@@ -205,7 +205,7 @@ export interface PositiveExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
205205
206206 /**
207207 * Intersection types can cause issues with
208- * {@linkcode toEqualTypeOf ` .toEqualTypeOf()` }:
208+ * {@linkcode toEqualTypeOf | .toEqualTypeOf()}:
209209 * ```ts
210210 * // ❌ The following line doesn't compile, even though the types are arguably the same.
211211 * expectTypeOf<{ a: 1 } & { b: 2 }>().toEqualTypeOf<{ a: 1; b: 2 }>()
@@ -216,7 +216,7 @@ export interface PositiveExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
216216 * __Note__: This comes at a performance cost, and can cause the compiler
217217 * to 'give up' if used with excessively deep types, so use sparingly.
218218 *
219- * @see {@link https://github.com/mmkal/expect-type/pull/21 Reference }
219+ * @see {@link https://github.com/mmkal/expect-type/pull/21 | Reference }
220220 */
221221 branded : {
222222 /**
@@ -228,8 +228,8 @@ export interface PositiveExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
228228 *
229229 * **_Unexpected failure_**? For a more permissive but less performant
230230 * 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 }.
233233 *
234234 * @example
235235 * <caption>Using generic type argument syntax</caption>
@@ -274,8 +274,8 @@ export interface NegativeExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
274274 *
275275 * **_Unexpected failure_**? For a more permissive but less performant
276276 * 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 }.
279279 *
280280 * @example
281281 * <caption>Using generic type argument syntax</caption>
@@ -311,8 +311,8 @@ export interface NegativeExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
311311 *
312312 * **_Unexpected failure_**? For a more permissive but less performant
313313 * 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 }.
316316 *
317317 * @example
318318 * <caption>Using generic type argument syntax</caption>
@@ -339,7 +339,7 @@ export interface NegativeExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
339339 toMatchTypeOf : {
340340 /**
341341 * A less strict version of
342- * {@linkcode PositiveExpectTypeOf.toEqualTypeOf ` .toEqualTypeOf()` }
342+ * {@linkcode PositiveExpectTypeOf.toEqualTypeOf | .toEqualTypeOf()}
343343 * that allows for extra properties.
344344 * This is roughly equivalent to an `extends` constraint
345345 * in a function type argument.
@@ -367,7 +367,7 @@ export interface NegativeExpectTypeOf<Actual> extends BaseExpectTypeOf<Actual, {
367367
368368 /**
369369 * A less strict version of
370- * {@linkcode PositiveExpectTypeOf.toEqualTypeOf ` .toEqualTypeOf()` }
370+ * {@linkcode PositiveExpectTypeOf.toEqualTypeOf | .toEqualTypeOf()}
371371 * that allows for extra properties.
372372 * This is roughly equivalent to an `extends` constraint
373373 * in a function type argument.
@@ -502,7 +502,7 @@ export interface BaseExpectTypeOf<Actual, Options extends {positive: boolean}> {
502502 * Checks whether a function is callable with the given parameters.
503503 *
504504 * __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
506506 * `ts-expect-error` instead.
507507 *
508508 * @example
@@ -514,7 +514,7 @@ export interface BaseExpectTypeOf<Actual, Options extends {positive: boolean}> {
514514 *
515515 * __Known Limitation__: This assertion will likely fail if you try to use it
516516 * 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.
518518 *
519519 * @param args - The arguments to check for callability.
520520 * @returns `true`.
@@ -855,6 +855,7 @@ export type _ExpectTypeOf = {
855855 * form of a reference or generic type parameter.
856856 *
857857 * @example
858+ * ```ts
858859 * import { foo, bar } from '../foo'
859860 * import { expectTypeOf } from 'expect-type'
860861 *
@@ -867,6 +868,7 @@ export type _ExpectTypeOf = {
867868 * expectTypeOf(bar).parameter(0).toBeString()
868869 * expectTypeOf(bar).returns.not.toBeAny()
869870 * })
871+ * ```
870872 *
871873 * @description
872874 * See the [full docs](https://npmjs.com/package/expect-type#documentation) for lots more examples.
0 commit comments