Resolve "WalletHD Genesis: Refactor to use Mnemonic Primitive"

This commit is contained in:
2025-07-26 22:46:10 +00:00
committed by Jim Hamill
parent 4f15ce0a7c
commit f40c23417d
5 changed files with 39 additions and 32 deletions
+1
View File
@@ -6,4 +6,5 @@ export * from './memoizer.js';
export * from './misc.js';
export * from './sse-session.js';
export * from './sse-session-msgpackr.js';
export * from './type-utils.js';
export * from './uuid.js';
+11
View File
@@ -0,0 +1,11 @@
/**
* Utility for removing keys that works with distributive unions.
*/
export type DistributiveOmit<T, K extends keyof any> = T extends any
? Omit<T, K>
: never;
/**
* Make the given property in a type optional.
*/
export type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;