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> {