Skip to content

Commit

Permalink
refactor(GuardIs): add guardStringLengthBetween().
Browse files Browse the repository at this point in the history
  • Loading branch information
angularpackage committed Jan 29, 2022
1 parent 4e871f9 commit 1d44d2e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/guard/interface/guard-is.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { guardString } from '../lib/guard-string.func';
import { guardStringIncludes } from '../lib/guard-string-includes.func';
import { guardStringIncludesSome } from '../lib/guard-string-includes-some.func';
import { guardStringLength } from '../lib/guard-string-length.func';
import { guardStringLengthBetween } from '../lib/guard-string-length-between.func';
import { guardSymbol } from '../lib/guard-symbol.func';
import { guardTrue } from '../lib/guard-true.func';
import { guardType } from '../lib/guard-type.func';
Expand Down Expand Up @@ -127,9 +128,13 @@ export interface GuardIs {
*/
stringIncludesSome: typeof guardStringIncludesSome;
/**
* Guards the value to be a `string` of a length between the specified range.
* Guards the value to be `string` type or `String` instance of a specified length.
*/
stringLength: typeof guardStringLength;
/**
* Guards the value to be `string` or `String` instance of a length between the specified range.
*/
stringLengthBetween: typeof guardStringLengthBetween;
/**
* Guards the value to be a `symbol`.
*/
Expand Down

0 comments on commit 1d44d2e

Please sign in to comment.