mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 20:25:40 +00:00
Fix some JSdoc errors
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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> = {};
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user