-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add @inheritdoc #2943
Add @inheritdoc #2943
Conversation
@@ -56,17 +92,29 @@ export class IgxBaseTransactionService<T extends Transaction, S extends State> i | |||
return state.value; | |||
} | |||
|
|||
/** | |||
* @inheritdoc | |||
*/ | |||
commit(data: any): void { } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -31,6 +31,9 @@ export class AutoPositionStrategy extends ConnectedPositioningStrategy implement | |||
|
|||
|
|||
// The position method should return a <div> container that will host the component | |||
/** | |||
* @inheritdoc | |||
*/ | |||
position(contentElement: HTMLElement, size: { width: number, height: number }, document?: Document, initialCall?: boolean): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
/** | ||
* @inheritdoc | ||
*/ | ||
position(contentElement: HTMLElement, size: { width: number, height: number }, document?: Document, initialCall?: boolean): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
@@ -17,6 +17,9 @@ export class GlobalPositionStrategy implements IPositionStrategy { | |||
this.settings = Object.assign({}, this._defaultSettings, settings); | |||
} | |||
|
|||
/** | |||
* @inheritdoc | |||
*/ | |||
position(contentElement: HTMLElement, size?: { width: number, height: number}, document?: Document, initialCall?: boolean): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
…om/IgniteUI/igniteui-angular into mvenkov/add-inheritdoc-to-comments
…om/IgniteUI/igniteui-angular into mvenkov/add-inheritdoc-to-comments
TypeDocs may take dev comments only from interfaces when @inheritdoc is added. However, scroll strategies need to have constructor. This is why we add ScrollStrategy abstract class. It is implementing IScrollStrategy, and then all implementations extends the new abstract class
…om/IgniteUI/igniteui-angular into mvenkov/add-inheritdoc-to-comments
@@ -17,5 +20,5 @@ export interface IPositionStrategy { | |||
* settings.positionStrategy.position(content, size, document, true); | |||
* ``` | |||
*/ | |||
position(contentElement: HTMLElement, size?: {}, document?: Document, initialCall?: boolean): void; | |||
position(contentElement: HTMLElement, size?: { width: number, height: number }, document?: Document, initialCall?: boolean): void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work because the size parameter is a object and when the comparison between the parameters came the objects would have different references which respectively means that the parameters are not equal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Now we have Size interface and position method accepts Size parameter.
Add @inheritdoc to public fields in classes which implementing interfaces. This allows comments from interfaces to show in classes in TypeDoc API documentation.