Fix some JSdoc errors

This commit is contained in:
Rory&
2026-03-14 04:13:20 +01:00
parent e9016900ca
commit 9e4e385288
3 changed files with 6 additions and 5 deletions

View File

@@ -33,7 +33,8 @@ export abstract class Connection {
/**
* Generates an authorization url for the connection.
* @param args
* @param userId the user id to generate the url for
* @returns the authorization url
*/
abstract getAuthorizationUrl(userId: string): string;
@@ -47,7 +48,7 @@ export abstract class Connection {
/**
* Processes the callback
* @param args Callback arguments
* @param params Callback arguments
*/
abstract handleCallback(params: ConnectionCallbackSchema): Promise<ConnectedAccount | null>;
@@ -63,7 +64,7 @@ export abstract class Connection {
/**
* Generates a state
* @param user_id The user id to generate a state for.
* @param userId The user id to generate a state for.
* @returns a new state
*/
createState(userId: string): string {

View File

@@ -88,7 +88,6 @@ export class BitField {
/**
* Gets an object mapping field names to a {@link boolean} indicating whether the
* bit is available.
* @param {...*} hasParams Additional parameters for the has method, if any
*/
serialize() {
const serialized: Record<string, boolean> = {};

View File

@@ -124,7 +124,8 @@ export const Email: {
},
/**
*
* Generates a password reset link
* @param type the MailType to generate a link for
* @param id user id
*/
generateLink: async function (type, id) {