Skip to content

Commit 4185c72

Browse files
fix(isType): use isStringType instead of isString
1 parent 46ece83 commit 4185c72

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/type/src/is/lib/is-type.func.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { isInstance } from './is-instance.func';
44
import { isNotNull } from '../not/lib/is-not-null.func';
55
import { isObject } from './is-object.func';
66
import { isPrimitive } from './is-primitive.func';
7-
import { isString } from './is-string.func';
7+
import { isStringType } from './is-string-type.func';
88
import { resultCallback } from '../../lib/result-callback.func';
99
// Type.
1010
import { 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
*/
2222
export 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':

0 commit comments

Comments
 (0)