Resolve "WalletHD Genesis: Refactor to use Mnemonic Primitive"
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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>>;
|
||||
Reference in New Issue
Block a user