From b9b93ddb86f2b1e50d8b61dd9a4df2d0c98a847e Mon Sep 17 00:00:00 2001 From: mhp23 Date: Wed, 7 Feb 2024 19:57:44 +0330 Subject: [PATCH] fix: return type from recursive mapping --- src/layout/createRStyle/mapping/recursiveMapping.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layout/createRStyle/mapping/recursiveMapping.ts b/src/layout/createRStyle/mapping/recursiveMapping.ts index 8042053..fe73f34 100644 --- a/src/layout/createRStyle/mapping/recursiveMapping.ts +++ b/src/layout/createRStyle/mapping/recursiveMapping.ts @@ -1,12 +1,12 @@ import { parseValue } from '../parseValue'; -import type { CreateStyleConfig, ValuePattern } from '../../../types'; +import type { ValuePattern, CreateStyleConfig } from '../../../types'; export const recursiveMapping = ( style: T, styleConfig?: Partial -) => { +): T => { const cache = new WeakMap(); - const mapper = (currentStyle: unknown): unknown => { + const mapper = (currentStyle: unknown): any => { if (typeof currentStyle !== 'object' || currentStyle === null) { return parseValue(currentStyle as ValuePattern, styleConfig); }