From 23d95acb268ee7d412b3f2104c0490d6c5009586 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 9 Sep 2024 14:23:03 -0300 Subject: [PATCH] move Nip05 type to nip05.ts --- core.ts | 2 -- nip05.ts | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core.ts b/core.ts index 5b5254b..a92b824 100644 --- a/core.ts +++ b/core.ts @@ -23,8 +23,6 @@ export type NostrEvent = Event export type EventTemplate = Pick export type UnsignedEvent = Pick -export type Nip05 = `${string}@${string}` - /** An event whose signature has been verified. */ export interface VerifiedEvent extends Event { [verifiedSymbol]: true diff --git a/nip05.ts b/nip05.ts index 2ccbb53..2922453 100644 --- a/nip05.ts +++ b/nip05.ts @@ -1,6 +1,7 @@ -import { Nip05 } from './core.ts' import { ProfilePointer } from './nip19.ts' +export type Nip05 = `${string}@${string}` + /** * NIP-05 regex. The localpart is optional, and should be assumed to be `_` otherwise. *