diff options
author | Sebastian <sebasjm@gmail.com> | 2023-02-10 09:51:37 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-02-10 09:52:02 -0300 |
commit | ba8b40c9150586982e42e76d364d76202627bd6f (patch) | |
tree | ebeed7551aad62a03954945de72320b6c1bc1f01 /packages/demobank-ui/src/utils.ts | |
parent | 53af8b486fd8a538c1f54a2ce66ed5f74b2b46ed (diff) | |
download | wallet-core-ba8b40c9150586982e42e76d364d76202627bd6f.tar.xz |
business account
Diffstat (limited to 'packages/demobank-ui/src/utils.ts')
-rw-r--r-- | packages/demobank-ui/src/utils.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/demobank-ui/src/utils.ts b/packages/demobank-ui/src/utils.ts index 0dc24e468..642b3c68d 100644 --- a/packages/demobank-ui/src/utils.ts +++ b/packages/demobank-ui/src/utils.ts @@ -54,8 +54,10 @@ export type PartialButDefined<T> = { }; export type WithIntermediate<Type extends object> = { - [prop in keyof Type]: Type[prop] extends object ? WithIntermediate<Type[prop]> : (Type[prop] | undefined); -} + [prop in keyof Type]: Type[prop] extends object + ? WithIntermediate<Type[prop]> + : Type[prop] | undefined; +}; // export function partialWithObjects<T extends object>(obj: T | undefined, () => complete): WithIntermediate<T> { // const root = obj === undefined ? {} : obj; |