Skip to content

Commit 8ed034c

Browse files
bergundymjameswhTHardy98
authored
chore(core): Upgrade Core (temporalio#1637)
Co-authored-by: James Watkins-Harvey <[email protected]> Co-authored-by: Thomas Hardy <[email protected]>
1 parent d9df892 commit 8ed034c

File tree

11 files changed

+347
-256
lines changed

11 files changed

+347
-256
lines changed

packages/common/src/internal-non-workflow/codec-types.ts

+10-8
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ export type ReplaceNested<T, ToReplace, ReplaceWith> = T extends (...args: any[]
2323
? T
2424
: [keyof T] extends [never]
2525
? T
26-
: T extends { [k: string]: ToReplace }
27-
? {
28-
[P in keyof T]: ReplaceNested<T[P], ToReplace, ReplaceWith>;
29-
}
30-
: T extends ToReplace
31-
? ReplaceWith | Exclude<T, ToReplace>
32-
: {
26+
: T extends Record<string, string> // Special exception for nexusHeader.
27+
? T
28+
: T extends { [k: string]: ToReplace }
29+
? {
3330
[P in keyof T]: ReplaceNested<T[P], ToReplace, ReplaceWith>;
34-
};
31+
}
32+
: T extends ToReplace
33+
? ReplaceWith | Exclude<T, ToReplace>
34+
: {
35+
[P in keyof T]: ReplaceNested<T[P], ToReplace, ReplaceWith>;
36+
};

0 commit comments

Comments
 (0)