fix: 🚨 Remove useless function overloading

This commit is contained in:
Jesse Wierzbinski 2025-11-21 07:26:35 +01:00
parent f2e9c862a6
commit f260064083
No known key found for this signature in database
2 changed files with 2 additions and 24 deletions

View file

@ -932,23 +932,12 @@ export class Note extends BaseInterface<typeof Notes, NoteTypeWithRelations> {
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<Note>;
/**
* 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<Note>;
public static async fromVersia(
versiaNote: VersiaEntities.Note | URL,
): Promise<Note> {

View file

@ -704,23 +704,12 @@ export class User extends BaseInterface<typeof Users, UserWithRelations> {
);
}
/**
* 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<User>;
/**
* 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<User>;
public static async fromVersia(
versiaUser: VersiaEntities.User | URL,
): Promise<User> {