Skip to content

Commit

Permalink
馃摝 unpack blob data type (#7937)
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD authored and bluebill1049 committed Mar 13, 2022
1 parent a56aff3 commit 0b73f05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reports/api-extractor.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ export type TriggerConfig = Partial<{
}>;

// @public (undocumented)
export type UnpackNestedValue<T> = T extends NestedValue<infer U> ? U : T extends Date | FileList | File ? T : T extends object ? {
export type UnpackNestedValue<T> = T extends NestedValue<infer U> ? U : T extends Date | FileList | File | Blob ? T : T extends object ? {
[K in keyof T]: UnpackNestedValue<T[K]>;
} : T;

Expand Down
2 changes: 1 addition & 1 deletion src/types/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type NestedValue<TValue extends object = object> = {

export type UnpackNestedValue<T> = T extends NestedValue<infer U>
? U
: T extends Date | FileList | File
: T extends Date | FileList | File | Blob
? T
: T extends object
? { [K in keyof T]: UnpackNestedValue<T[K]> }
Expand Down

0 comments on commit 0b73f05

Please sign in to comment.