mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
fix: 🚨 Remove useless function overloading
This commit is contained in:
parent
f2e9c862a6
commit
f260064083
2 changed files with 2 additions and 24 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue