web_lib

Common web application libraries
git clone https://radroots.dev/git/web_lib.git
Log | Files | Refs | LICENSE

commit 69294840a2967aa2ea1637e7410999a5ad3ccc64
parent dceec71e251bcf632751150c706f01841aa20dc6
Author: triesap <137732411+triesap@users.noreply.github.com>
Date:   Fri,  7 Mar 2025 11:25:54 +0000

utils-nostr: edit types

Diffstat:
Mutils-nostr/src/lib/ndk.ts | 4++--
Mutils-nostr/src/lib/types.ts | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/utils-nostr/src/lib/ndk.ts b/utils-nostr/src/lib/ndk.ts @@ -1,4 +1,4 @@ -import { time_now_ms, type NostrMetadataTmp } from '$root'; +import { time_now_ms, type NostrMetadata } from '$root'; import NDK, { NDKEvent, NDKPrivateKeySigner, NDKUser } from '@nostr-dev-kit/ndk'; export const ndk_init = async (opts: { @@ -23,7 +23,7 @@ export const ndk_init = async (opts: { export const ndk_event_metadata = async (opts: { $ndk: NDK; $ndk_user: NDKUser; - metadata: NostrMetadataTmp + metadata: NostrMetadata }): Promise<NDKEvent | undefined> => { try { const { $ndk, $ndk_user } = opts; diff --git a/utils-nostr/src/lib/types.ts b/utils-nostr/src/lib/types.ts @@ -1,6 +1,6 @@ import { type EventTemplate as NostrToolsEventTemplate } from "nostr-tools"; -export type NostrMetadataTmp = { +export type NostrMetadata = { name?: string; display_name?: string; about?: string;