From 85fa2f4559720932d75f8713701b4ee87eb6017c Mon Sep 17 00:00:00 2001 From: bymyself Date: Thu, 4 Sep 2025 21:02:32 -0700 Subject: [PATCH] removed unused type guards --- src/utils/typeGuardUtil.ts | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/utils/typeGuardUtil.ts b/src/utils/typeGuardUtil.ts index 30a2623e0..decf35554 100644 --- a/src/utils/typeGuardUtil.ts +++ b/src/utils/typeGuardUtil.ts @@ -56,24 +56,3 @@ export const isSlotObject = (obj: unknown): obj is INodeSlot => { 'boundingRect' in obj ) } - -/** - * Type guard for safe number conversion - */ -export const isValidNumber = (value: unknown): value is number => { - return typeof value === 'number' && !isNaN(value) && isFinite(value) -} - -/** - * Type guard for safe string conversion - */ -export const isValidString = (value: unknown): value is string => { - return typeof value === 'string' -} - -/** - * Type guard for arrays with safe bounds checking - */ -export const isNonEmptyArray = (value: unknown): value is T[] => { - return Array.isArray(value) && value.length > 0 -}