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
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue