Skip to content

Commit c70f8c8

Browse files
docs(README.md): update
1 parent 1b45fd6 commit c70f8c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ import { Constructor, CycleHook, Defined, Func, Key, Primitive, Primitives, Resu
146146
* an [`Array`][array] of a generic type with [`guardArray()`](#guardarray).
147147
* a `bigint` with [`guardBigInt()`](#guardbigint).
148148
* a `boolean` with [`guardBoolean()`](#guardboolean).
149-
* a generic `Class` type [`class`][classes] with [`guardClass()`](#guardclass).
149+
* a generic `Class` type [`class`][ts-classes] with [`guardClass()`](#guardclass).
150150
* defined with [`guardDefined()`](#guarddefined).
151151
* a [`Func`](#func) type with [`guardFunction()`](#guardfunction).
152152
* an instance with [`guardInstance()`](#guardinstance).
@@ -575,7 +575,7 @@ isBooleanType(BOOLEAN_INSTANCE); // false
575575

576576
### isClass
577577

578-
Use `isClass()` or `is.class()` to check if **any** `value` is a `function` type, an instance of [`Function`][function] and [`Object`][object] as a generic `Class` type of [`class`][classes]. It also **confirms** with the regexp that function is a [`class`][classes].
578+
Use `isClass()` or `is.class()` to check if **any** `value` is a `function` type, an instance of [`Function`][function] and [`Object`][object] as a generic `Class` type of [`class`][ts-classes]. It also **confirms** with the regexp that function is a [`class`][ts-classes].
579579

580580
```typescript
581581
const isClass: IsClass = <Class = Function>(value: any, callback: ResultCallback = resultCallback): value is Class =>
@@ -611,7 +611,7 @@ const isClass: IsClass = <Class = Function>(value: any, callback: ResultCallback
611611
| :----------------- | :-------: | :---------------------------------------------------------------- |
612612
| `value` is `Class` | `boolean` | By default `Class` variable is equal to [`Function`][function] and the **return type** is a `boolean` as the result of its statement |
613613

614-
The **return value** is a `boolean` indicating whether or not the `value` is a [`class`][classes].
614+
The **return value** is a `boolean` indicating whether or not the `value` is a [`class`][ts-classes].
615615

616616
**Usage:**
617617

@@ -672,7 +672,7 @@ isDefined(defined); // false
672672

673673
### isFunction
674674

675-
Use `isFunction()` or `is.function()` to check if **any** `value` is a `function` type, an instance of [`Function`][function] and [`Object`][object]. It also **denies** with the regexp that function is a [`class`][classes].
675+
Use `isFunction()` or `is.function()` to check if **any** `value` is a `function` type, an instance of [`Function`][function] and [`Object`][object]. It also **denies** with the regexp that function is a [`class`][ts-classes].
676676

677677
```typescript
678678
const isFunction: IsFunction = (value: any, callback: ResultCallback = resultCallback): value is Func =>
@@ -2160,7 +2160,7 @@ The **return value** is a `boolean` indicating whether or not the `value` is a `
21602160

21612161
`4.1.0`: Fixes the `value` is not guarded by extending generic type `Class` variable with `Function`.
21622162

2163-
Use `guardClass()` or `guard.is.class()` to guard the `value` to be a generic `Class` type of [`class`][classes].
2163+
Use `guardClass()` or `guard.is.class()` to guard the `value` to be a generic `Class` type of [`class`][ts-classes].
21642164

21652165
```typescript
21662166
const guardClass: GuardClass = <Class extends Function>(value: Class, callback?: ResultCallback): value is Class =>
@@ -2186,7 +2186,7 @@ const guardClass: GuardClass = <Class extends Function>(value: Class, callback?:
21862186
| :----------------- | :---------: | :---------------------------------------------------------------- |
21872187
| `value` is `Class` | `boolean` | By default `Class` variable is equal to the type detected from the `value` and the **return type** is a `boolean` as the result of its statement |
21882188

2189-
The **return value** is `boolean` indicating whether or not the `value` is a [`class`][classes].
2189+
The **return value** is `boolean` indicating whether or not the `value` is a [`class`][ts-classes].
21902190

21912191
**Usage:**
21922192

0 commit comments

Comments
 (0)