11// Function.
22import { isBigInt } from './is-big-int.func' ;
3- import { isBoolean } from './is-boolean.func' ;
3+ import { isBooleanType } from './is-boolean-type .func' ;
44import { isNull } from './is-null.func' ;
5- import { isNumber } from './is-number.func' ;
6- import { isString } from './is-string.func' ;
5+ import { isNumberType } from './is-number-type .func' ;
6+ import { isStringType } from './is-string-type .func' ;
77import { isSymbol } from './is-symbol.func' ;
88import { isUndefined } from './is-undefined.func' ;
99import { resultCallback } from '../../lib/result-callback.func' ;
@@ -25,13 +25,13 @@ export const isPrimitive: IsPrimitive = <T extends Primitive>(
2525 type : Primitives ,
2626 callback : ResultCallback = resultCallback
2727) : value is T => {
28- if ( isString ( type ) ) {
28+ if ( isStringType ( type ) ) {
2929 switch ( type ) {
3030 case 'bigint' : return isBigInt ( value , callback ) ;
31- case 'boolean' : return isBoolean ( value , callback ) ;
32- case 'number' : return isNumber ( value , callback ) ;
31+ case 'boolean' : return isBooleanType ( value , callback ) ;
32+ case 'number' : return isNumberType ( value , callback ) ;
3333 case 'null' : return isNull ( value , callback ) ;
34- case 'string' : return isString ( value , callback ) ;
34+ case 'string' : return isStringType ( value , callback ) ;
3535 case 'symbol' : return isSymbol ( value , callback ) ;
3636 case 'undefined' : return isUndefined ( value , callback ) ;
3737 }
0 commit comments