Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit c88606a

Browse files
committed
auto fix jsdocs based on lint rules
1 parent 583b204 commit c88606a

File tree

416 files changed

+1014
-712
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

416 files changed

+1014
-712
lines changed

src/apps/app/app-auth.controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export class UmbAppAuthController extends UmbControllerBase {
6060
/**
6161
* Starts the authorization flow.
6262
* It will check which providers are available and either redirect directly to the provider or show a provider selection screen.
63+
* @param userLoginState
6364
*/
6465
async makeAuthorizationRequest(userLoginState: UmbUserLoginState = 'loggingIn'): Promise<boolean> {
6566
if (!this.#authContext) {

src/apps/app/app-error.element.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,27 @@ import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
1010
export class UmbAppErrorElement extends UmbLitElement {
1111
/**
1212
* The headline to display
13-
*
1413
* @attr
1514
*/
1615
@property()
1716
errorHeadline?: string | null;
1817

1918
/**
2019
* The error message to display
21-
*
2220
* @attr
2321
*/
2422
@property()
2523
errorMessage?: string | null;
2624

2725
/**
2826
* The error to display
29-
*
3027
* @attr
3128
*/
3229
@property()
3330
error?: unknown;
3431

3532
/**
3633
* Hide the back button
37-
*
3834
* @attr
3935
*/
4036
@property({ type: Boolean, attribute: 'hide-back-button' })

src/apps/app/app.element.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { hasOwnOpener, retrieveStoredPath } from '@umbraco-cms/backoffice/utils'
2525
export class UmbAppElement extends UmbLitElement {
2626
/**
2727
* The base URL of the configured Umbraco server.
28-
*
2928
* @attr
3029
* @remarks This is the base URL of the Umbraco server, not the base URL of the backoffice.
3130
*/
@@ -39,7 +38,6 @@ export class UmbAppElement extends UmbLitElement {
3938

4039
/**
4140
* The base path of the backoffice.
42-
*
4341
* @attr
4442
*/
4543
@property({ type: String })

src/apps/app/server-connection.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class UmbServerConnection {
2424

2525
/**
2626
* Gets the URL of the server.
27-
* @return {*}
27+
* @returns {*}
2828
* @memberof UmbServerConnection
2929
*/
3030
getUrl() {
@@ -33,7 +33,7 @@ export class UmbServerConnection {
3333

3434
/**
3535
* Gets the status of the server.
36-
* @return {string}
36+
* @returns {string}
3737
* @memberof UmbServerConnection
3838
*/
3939
getStatus() {
@@ -43,7 +43,7 @@ export class UmbServerConnection {
4343

4444
/**
4545
* Checks if the server is connected.
46-
* @return {boolean}
46+
* @returns {boolean}
4747
* @memberof UmbServerConnection
4848
*/
4949
getIsConnected() {

src/apps/installer/installer.context.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class UmbInstallerContext {
3838
/**
3939
* Observable method to get the current step in the installation process
4040
* @public
41-
* @return {*} {Observable<number>}
41+
* @returns {*} {Observable<number>}
4242
* @memberof UmbInstallerContext
4343
*/
4444
public currentStepChanges(): Observable<number> {
@@ -48,7 +48,7 @@ export class UmbInstallerContext {
4848
/**
4949
* Observable method to get the install status in the installation process
5050
* @public
51-
* @return {*} {(Observable<ProblemDetails | null>)}
51+
* @returns {*} {(Observable<ProblemDetails | null>)}
5252
* @memberof UmbInstallerContext
5353
*/
5454
public installStatusChanges(): Observable<ProblemDetails | null> {
@@ -96,7 +96,7 @@ export class UmbInstallerContext {
9696
/**
9797
* Get the data for the installation process
9898
* @public
99-
* @return {*} {PostInstallRequest}
99+
* @returns {*} {PostInstallRequest}
100100
* @memberof UmbInstallerContext
101101
*/
102102
public getData(): InstallRequestModel {

src/libs/class-api/class.interface.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface UmbClassInterface extends UmbControllerHost {
1313
* @description Observe an Observable. An Observable is a declared source of data that can be observed. An observables is declared from a UmbState.
1414
* @param {Observable<T>} source An Observable to observe from.
1515
* @param {method} callback Callback method called when data is changed.
16-
* @return {UmbObserverController} Reference to the created Observer Controller instance.
16+
* @returns {UmbObserverController} Reference to the created Observer Controller instance.
1717
* @memberof UmbClassMixin
1818
*/
1919
observe<
@@ -38,7 +38,7 @@ export interface UmbClassInterface extends UmbControllerHost {
3838
* @description Provide a context API for this or child elements.
3939
* @param {string} contextAlias
4040
* @param {instance} instance The API instance to be exposed.
41-
* @return {UmbContextProviderController} Reference to the created Context Provider Controller instance
41+
* @returns {UmbContextProviderController} Reference to the created Context Provider Controller instance
4242
* @memberof UmbClassMixin
4343
*/
4444
provideContext<R = unknown>(alias: string | UmbContextToken<R>, instance: R): UmbContextProviderController<R>;
@@ -47,7 +47,7 @@ export interface UmbClassInterface extends UmbControllerHost {
4747
* @description Setup a subscription for a context. The callback is called when the context is resolved.
4848
* @param {string} contextAlias
4949
* @param {method} callback Callback method called when context is resolved.
50-
* @return {UmbContextConsumerController} Reference to the created Context Consumer Controller instance
50+
* @returns {UmbContextConsumerController} Reference to the created Context Consumer Controller instance
5151
* @memberof UmbClassMixin
5252
*/
5353
consumeContext<BaseType = unknown, ResultType extends BaseType = BaseType>(
@@ -58,7 +58,7 @@ export interface UmbClassInterface extends UmbControllerHost {
5858
/**
5959
* @description Retrieve a context. Notice this is a one time retrieving of a context, meaning if you expect this to be up to date with reality you should instead use the consumeContext method.
6060
* @param {string} contextAlias
61-
* @return {Promise<ContextType>} A Promise with the reference to the Context Api Instance
61+
* @returns {Promise<ContextType>} A Promise with the reference to the Context Api Instance
6262
* @memberof UmbClassMixin
6363
*/
6464
getContext<BaseType = unknown, ResultType extends BaseType = BaseType>(

src/libs/context-api/consume/context-request.event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface UmbContextRequestEvent<ResultType = unknown> extends Event {
1818
/**
1919
* @export
2020
* @class UmbContextRequestEventImplementation
21-
* @extends {Event}
21+
* @augments {Event}
2222
* @implements {UmbContextRequestEvent}
2323
*/
2424
export class UmbContextRequestEventImplementation<ResultType = unknown>

src/libs/context-api/debug/context-data.function.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-case-declarations */
22
/**
33
* Change the collection of Contexts into a simplified array of data
4-
*
54
* @param contexts This is a map of the collected contexts from umb-debug
65
* @returns An array of simplified context data
76
*/
@@ -16,7 +15,6 @@ export function contextData(contexts: Map<any, any>): Array<UmbDebugContextData>
1615

1716
/**
1817
* Used to find the methods and properties of a context
19-
*
2018
* @param contextInstance The instance of the context
2119
* @returns A simplied object contain the properties and methods of the context
2220
*/
@@ -82,8 +80,8 @@ function contextItemData(contextInstance: any): UmbDebugContextItemData {
8280

8381
/**
8482
* Gets a list of methods from a class
85-
*
8683
* @param class The class to get the methods from
84+
* @param klass
8785
* @returns An array of method names as strings
8886
*/
8987
function getClassMethodNames(klass: any) {
@@ -104,23 +102,20 @@ function getClassMethodNames(klass: any) {
104102
export interface UmbDebugContextData {
105103
/**
106104
* The alias of the context
107-
*
108105
* @type {string}
109106
* @memberof UmbDebugContextData
110107
*/
111108
alias: string;
112109

113110
/**
114111
* The type of the context such as object or string
115-
*
116112
* @type {("string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function")}
117113
* @memberof UmbDebugContextData
118114
*/
119115
type: 'string' | 'number' | 'bigint' | 'boolean' | 'symbol' | 'undefined' | 'object' | 'function';
120116

121117
/**
122118
* Data about the context that includes method and property names
123-
*
124119
* @type {UmbDebugContextItemData}
125120
* @memberof UmbDebugContextData
126121
*/
@@ -137,23 +132,20 @@ export interface UmbDebugContextItemData {
137132
export interface UmbDebugContextItemPropertyData {
138133
/**
139134
* The name of the property
140-
*
141135
* @type {string}
142136
* @memberof UmbDebugContextItemPropertyData
143137
*/
144138
key: string;
145139

146140
/**
147141
* The type of the property's value such as string or number
148-
*
149142
* @type {("string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function")}
150143
* @memberof UmbDebugContextItemPropertyData
151144
*/
152145
type: 'string' | 'number' | 'bigint' | 'boolean' | 'symbol' | 'undefined' | 'object' | 'function';
153146

154147
/**
155148
* Simple types such as string or number can have their value displayed stored inside the property
156-
*
157149
* @type {("string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function")}
158150
* @memberof UmbDebugContextItemPropertyData
159151
*/

src/libs/context-api/provide/context-provide.event.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface UmbContextProvideEvent extends Event {
1313
/**
1414
* @export
1515
* @class UmbContextProvideEventImplementation
16-
* @extends {Event}
16+
* @augments {Event}
1717
* @implements {UmbContextProvideEvent}
1818
*/
1919
export class UmbContextProvideEventImplementation extends Event implements UmbContextProvideEvent {
@@ -40,7 +40,7 @@ export interface UmbContextUnprovidedEvent extends Event {
4040
/**
4141
* @export
4242
* @class UmbContextUnprovidedEventImplementation
43-
* @extends {Event}
43+
* @augments {Event}
4444
* @implements {UmbContextUnprovidedEvent}
4545
*/
4646
/*

src/libs/context-api/provide/context-provider.element.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { UmbControllerHostElementMixin } from '@umbraco-cms/backoffice/controlle
55

66
/**
77
* Provides a value to the context down the DOM tree.
8-
*
98
* @remarks This element is a wrapper around the `provideContext` function.
109
* @slot - The context will be available to all descendants given in the default slot.
1110
* @throws {Error} If the key property is not set.

0 commit comments

Comments
 (0)