Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit 4cc6833

Browse files
fix: styled system type error
1 parent b5ae37a commit 4cc6833

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/styled-system/src/shouldForwardProp

packages/styled-system/src/shouldForwardProp/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const allProps: string[] = [
5151
*/
5252
export function createShouldForwardProp(props: string[]) {
5353
const regex = new RegExp(`^(${props.join('|')})$`);
54-
return memoize(prop => isPropValid(prop) && !regex.test(prop));
54+
return memoize((prop: string) => isPropValid(prop) && !regex.test(prop));
5555
}
5656

5757
/**

0 commit comments

Comments
 (0)