mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
Improve event types
This commit is contained in:
2
nip42.ts
2
nip42.ts
@@ -17,7 +17,7 @@ export const authenticate = async ({
|
||||
}: {
|
||||
challenge: string
|
||||
relay: Relay
|
||||
sign: (e: EventTemplate) => Promise<Event>
|
||||
sign: <K extends number = number>(e: EventTemplate<K>) => Promise<Event<K>>
|
||||
}): Promise<void> => {
|
||||
const e: EventTemplate = {
|
||||
kind: Kind.ClientAuth,
|
||||
|
||||
Reference in New Issue
Block a user