File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { isInstance } from './is-instance.func';
44import { isNotNull } from '../not/lib/is-not-null.func' ;
55import { isObject } from './is-object.func' ;
66import { isPrimitive } from './is-primitive.func' ;
7- import { isString } from './is-string.func' ;
7+ import { isStringType } from './is-string-type .func' ;
88import { resultCallback } from '../../lib/result-callback.func' ;
99// Type.
1010import { IsType } from '../type/is-type.type' ;
@@ -20,7 +20,7 @@ import { Types } from '../../type/types.type';
2020 * @returns A `boolean` indicating whether or not the `value` is the `Type` from a `type` of the `Types`.
2121 */
2222export const isType : IsType = < T extends Type > ( value : any , type : Types < T > , callback : ResultCallback = resultCallback ) : value is T => {
23- if ( isString ( type ) ) {
23+ if ( isStringType ( type ) ) {
2424 switch ( type ) {
2525 // Primitives.
2626 case 'bigint' :
You can’t perform that action at this time.
0 commit comments