Skip to content

Commit

Permalink
fix: update ignore comments for various facade interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jikkai committed Jan 23, 2025
1 parent d9bf795 commit e84ba15
Show file tree
Hide file tree
Showing 13 changed files with 262 additions and 245 deletions.
36 changes: 18 additions & 18 deletions packages/core/src/facade/f-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.DocCreated, (params) => {
* const { unitId, type, doc, unit } = params;
* console.log('doc created', params);
* const { unitId, type, doc, unit } = params;
* console.log('doc created', params);
* });
* ```
*/
Expand All @@ -150,8 +150,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.DocDisposed, (params) => {
* const { unitId, unitType, snapshot } = params;
* console.log('doc disposed', params);
* const { unitId, unitType, snapshot } = params;
* console.log('doc disposed', params);
* });
* ```
*/
Expand All @@ -165,8 +165,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.LifeCycleChanged, (params) => {
* const { stage } = params;
* console.log('life cycle changed', params);
* const { stage } = params;
* console.log('life cycle changed', params);
* });
* ```
*/
Expand All @@ -180,8 +180,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.Redo, (event) => {
* const { params, id, type } = event;
* console.log('command executed', event);
* const { params, id, type } = event;
* console.log('command executed', event);
* });
* ```
*/
Expand All @@ -195,8 +195,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.Undo, (event) => {
* const { params, id, type } = event;
* console.log('command executed', event);
* const { params, id, type } = event;
* console.log('command executed', event);
* });
* ```
*/
Expand All @@ -210,8 +210,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.BeforeRedo, (event) => {
* const { params, id, type } = event;
* console.log('command executed', event);
* const { params, id, type } = event;
* console.log('command executed', event);
* });
* ```
*/
Expand All @@ -225,8 +225,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.BeforeUndo, (event) => {
* const { params, id, type } = event;
* console.log('command executed', event);
* const { params, id, type } = event;
* console.log('command executed', event);
* });
* ```
*/
Expand All @@ -240,8 +240,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.CommandExecuted, (event) => {
* const { params, id, type } = event;
* console.log('command executed', event);
* const { params, id, type } = event;
* console.log('command executed', event);
* });
* ```
*/
Expand All @@ -255,8 +255,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.BeforeCommandExecute, (event) => {
* const { params, id, type } = event;
* console.log('command executed', event);
* const { params, id, type } = event;
* console.log('command executed', event);
* });
* ```
*/
Expand Down
20 changes: 10 additions & 10 deletions packages/core/src/facade/f-univer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export class FUniver extends FBaseInitialable {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.UnitCreated, (params) => {
* console.log('unit created', params);
* console.log('unit created', params);
* });
* ```
*/
Expand Down Expand Up @@ -350,7 +350,7 @@ export class FUniver extends FBaseInitialable {
* @returns {FBlob} The new blob instance
* @example
* ```ts
* const blob = univerApi.newBlob();
* const blob = univerAPI.newBlob();
* ```
*/
newBlob(): FBlob {
Expand All @@ -362,7 +362,7 @@ export class FUniver extends FBaseInitialable {
* @returns {ColorBuilder} The new color instance
* @example
* ```ts
* const color = univerApi.newColor();
* const color = univerAPI.newColor();
* ```
*/
newColor(): ColorBuilder {
Expand All @@ -375,7 +375,7 @@ export class FUniver extends FBaseInitialable {
* @returns {RichTextBuilder} The new rich text instance
* @example
* ```ts
* const richText = univerApi.newRichText();
* const richText = univerAPI.newRichText();
* ```
*/
newRichText(data?: IDocumentData): RichTextBuilder {
Expand All @@ -388,7 +388,7 @@ export class FUniver extends FBaseInitialable {
* @returns {RichTextValue} The new rich text value instance
* @example
* ```ts
* const richTextValue = univerApi.newRichTextValue();
* const richTextValue = univerAPI.newRichTextValue();
* ```
*/
newRichTextValue(data: IDocumentData): RichTextValue {
Expand All @@ -401,7 +401,7 @@ export class FUniver extends FBaseInitialable {
* @returns {ParagraphStyleBuilder} The new paragraph style instance
* @example
* ```ts
* const paragraphStyle = univerApi.newParagraphStyle();
* const paragraphStyle = univerAPI.newParagraphStyle();
* ```
*/
newParagraphStyle(style?: IParagraphStyle): ParagraphStyleBuilder {
Expand All @@ -414,7 +414,7 @@ export class FUniver extends FBaseInitialable {
* @returns {ParagraphStyleValue} The new paragraph style value instance
* @example
* ```ts
* const paragraphStyleValue = univerApi.newParagraphStyleValue();
* const paragraphStyleValue = univerAPI.newParagraphStyleValue();
* ```
*/
newParagraphStyleValue(style?: IParagraphStyle): ParagraphStyleValue {
Expand All @@ -427,7 +427,7 @@ export class FUniver extends FBaseInitialable {
* @returns {TextStyleBuilder} The new text style instance
* @example
* ```ts
* const textStyle = univerApi.newTextStyle();
* const textStyle = univerAPI.newTextStyle();
* ```
*/
newTextStyle(style?: ITextStyle): TextStyleBuilder {
Expand All @@ -440,7 +440,7 @@ export class FUniver extends FBaseInitialable {
* @returns {TextStyleValue} The new text style value instance
* @example
* ```ts
* const textStyleValue = univerApi.newTextStyleValue();
* const textStyleValue = univerAPI.newTextStyleValue();
* ```
*/
newTextStyleValue(style?: ITextStyle): TextStyleValue {
Expand All @@ -453,7 +453,7 @@ export class FUniver extends FBaseInitialable {
* @returns {TextDecorationBuilder} The new text decoration instance
* @example
* ```ts
* const decoration = univerApi.newTextDecoration();
* const decoration = univerAPI.newTextDecoration();
* ```
*/
newTextDecoration(decoration?: ITextDecoration): TextDecorationBuilder {
Expand Down
4 changes: 3 additions & 1 deletion packages/sheets-filter/src/facade/f-worksheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ import { SheetsFilterService } from '@univerjs/sheets-filter';
import { FWorksheet } from '@univerjs/sheets/facade';
import { FFilter } from './f-filter';

/** @ignore */
/**
* @ignore
*/
export interface IFWorksheetFilter {
/**
* Get the filter for the current worksheet.
Expand Down
4 changes: 3 additions & 1 deletion packages/sheets-sort/src/facade/f-worksheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ import { type IRange, RANGE_TYPE } from '@univerjs/core';
import { SortRangeCommand, SortType } from '@univerjs/sheets-sort';
import { FWorksheet } from '@univerjs/sheets/facade';

/** @ignore */
/**
* @ignore
*/
export interface IFWorksheetSort {
/**
* Sort the worksheet by the specified column.
Expand Down
Loading

0 comments on commit e84ba15

Please sign in to comment.