-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(core): amplify configure with storage path type issue #14088
Changes from all commits
ac01f91
5bb8c68
d3f0fe1
251f630
780b1ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ export interface AmplifyOutputsStorageBucketProperties { | |
/** Region for the bucket */ | ||
aws_region: string; | ||
/** Paths to object with access permissions */ | ||
paths?: Record<string, Record<string, string[] | undefined>>; | ||
paths?: Partial<Record<string, Record<string, string[] | undefined>>>; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: Hence the additional parsing logic above in |
||
} | ||
export interface AmplifyOutputsStorageProperties { | ||
/** Default region for Storage */ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sanitization step is required to convert
Partial<Record<string, ...>>
type toRecord<string, ...>
by removing undefined values. i.e removePartial
.