Add initialize to nip46

This commit is contained in:
Jon Staab
2024-11-08 12:54:46 -08:00
parent f9cc3e034b
commit 8b320e7c9f
2 changed files with 128 additions and 55 deletions
+2
View File
@@ -9,6 +9,8 @@ export const isNil = (x: any) => [null, undefined].includes(x)
export type Maybe<T> = T | undefined
export const ifLet = <T>(x: T | undefined, f: (x: T) => void) => x === undefined ? undefined : f(x)
// Regular old utils
export const noop = (...args: unknown[]) => undefined