Skip to content

Commit

Permalink
chore: update internal type EscapeHatchProps (#2262)
Browse files Browse the repository at this point in the history
Co-authored-by: Hein Jeong <heinje@amazon.com>
  • Loading branch information
hein-j and Hein Jeong committed Jul 7, 2022
1 parent 14d35db commit a72cace
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nasty-tips-eat.md
@@ -0,0 +1,5 @@
---
'@aws-amplify/ui-react': minor
---

Update internal type EscapeHatchProps to accept `unknown`, so that customers can set overrides of any type.
2 changes: 1 addition & 1 deletion packages/react/src/primitives/shared/utils.ts
Expand Up @@ -78,7 +78,7 @@ export const getOverrideProps = (
};

export type EscapeHatchProps = {
[elementHierarchy: string]: Record<string, string>;
[elementHierarchy: string]: Record<string, unknown>;
};

type VariantValues = { [key: string]: string };
Expand Down

0 comments on commit a72cace

Please sign in to comment.