Skip to content

Commit f260064

Browse files
committed
fix: 🚨 Remove useless function overloading
1 parent f2e9c86 commit f260064

2 files changed

Lines changed: 2 additions & 24 deletions

File tree

packages/kit/db/note.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -932,23 +932,12 @@ export class Note extends BaseInterface<typeof Notes, NoteTypeWithRelations> {
932932
return Note.fromVersia(uri);
933933
}
934934

935-
/**
936-
* Tries to fetch a Versia Note from the given URL.
937-
*
938-
* @param url The URL to fetch the note from
939-
*/
940-
public static async fromVersia(url: URL): Promise<Note>;
941-
942935
/**
943936
* Takes a Versia Note representation, and serializes it to the database.
944937
*
945938
* If the note already exists, it will update it.
946-
* @param versiaNote
939+
* @param versiaNote - URL or Versia Note representation
947940
*/
948-
public static async fromVersia(
949-
versiaNote: VersiaEntities.Note,
950-
): Promise<Note>;
951-
952941
public static async fromVersia(
953942
versiaNote: VersiaEntities.Note | URL,
954943
): Promise<Note> {

packages/kit/db/user.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -704,23 +704,12 @@ export class User extends BaseInterface<typeof Users, UserWithRelations> {
704704
);
705705
}
706706

707-
/**
708-
* Tries to fetch a Versia user from the given URL.
709-
*
710-
* @param url The URL to fetch the user from
711-
*/
712-
public static async fromVersia(url: URL): Promise<User>;
713-
714707
/**
715708
* Takes a Versia User representation, and serializes it to the database.
716709
*
717710
* If the user already exists, it will update it.
718-
* @param versiaUser
711+
* @param versiaUser URL or Versia User representation
719712
*/
720-
public static async fromVersia(
721-
versiaUser: VersiaEntities.User,
722-
): Promise<User>;
723-
724713
public static async fromVersia(
725714
versiaUser: VersiaEntities.User | URL,
726715
): Promise<User> {

0 commit comments

Comments
 (0)