Improve event types

This commit is contained in:
Alex Gleason
2023-05-06 16:51:23 -05:00
committed by fiatjaf_
parent d0bd599ce8
commit 8a53b3b8b3
8 changed files with 29 additions and 28 deletions

View File

@@ -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,