Skip to content

Commit

Permalink
fix: return type from recursive mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Mhp23 committed Feb 7, 2024
1 parent 028438e commit b9b93dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/layout/createRStyle/mapping/recursiveMapping.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { parseValue } from '../parseValue';
import type { CreateStyleConfig, ValuePattern } from '../../../types';
import type { ValuePattern, CreateStyleConfig } from '../../../types';

export const recursiveMapping = <T>(
style: T,
styleConfig?: Partial<CreateStyleConfig>
) => {
): 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);
}
Expand Down

0 comments on commit b9b93dd

Please sign in to comment.