From f260064083f9d5f5162923ca7c02d19642a8a3f6 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Fri, 21 Nov 2025 07:26:35 +0100 Subject: [PATCH] fix: :rotating_light: Remove useless function overloading --- packages/kit/db/note.ts | 13 +------------ packages/kit/db/user.ts | 13 +------------ 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/packages/kit/db/note.ts b/packages/kit/db/note.ts index 68dc0880..77e510aa 100644 --- a/packages/kit/db/note.ts +++ b/packages/kit/db/note.ts @@ -932,23 +932,12 @@ export class Note extends BaseInterface { return Note.fromVersia(uri); } - /** - * Tries to fetch a Versia Note from the given URL. - * - * @param url The URL to fetch the note from - */ - public static async fromVersia(url: URL): Promise; - /** * Takes a Versia Note representation, and serializes it to the database. * * If the note already exists, it will update it. - * @param versiaNote + * @param versiaNote - URL or Versia Note representation */ - public static async fromVersia( - versiaNote: VersiaEntities.Note, - ): Promise; - public static async fromVersia( versiaNote: VersiaEntities.Note | URL, ): Promise { diff --git a/packages/kit/db/user.ts b/packages/kit/db/user.ts index 4551de82..94e1d554 100644 --- a/packages/kit/db/user.ts +++ b/packages/kit/db/user.ts @@ -704,23 +704,12 @@ export class User extends BaseInterface { ); } - /** - * Tries to fetch a Versia user from the given URL. - * - * @param url The URL to fetch the user from - */ - public static async fromVersia(url: URL): Promise; - /** * Takes a Versia User representation, and serializes it to the database. * * If the user already exists, it will update it. - * @param versiaUser + * @param versiaUser URL or Versia User representation */ - public static async fromVersia( - versiaUser: VersiaEntities.User, - ): Promise; - public static async fromVersia( versiaUser: VersiaEntities.User | URL, ): Promise {