GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: fix incorrect content for emit method in event api · Dicky-L/lowcode-engine@53ada7b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docs/docs/api
    • event.md
  • packages/types/src/shell/api
    • event.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/docs/api/event.md‎

Copy file name to clipboardExpand all lines: docs/docs/api/event.md
+5-4Lines changed: 5 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ off(event: string, listener: (...args: any[]) => void): void;
4343

4444
```typescript
4545
/**
46-
* 取消监听事件
47-
* cancel a monitor from a event
46+
* 触发事件
47+
* emit a message for a event
4848
* @param event 事件名称
49-
* @param listener 事件回调
49+
* @param args 事件参数
50+
* @returns
5051
*/
51-
off(event: string, listener: (...args: any[]) => void): void;
52+
emit(event: string, ...args: any[]): void;
5253
```
5354

5455
## 使用示例
Collapse file

‎packages/types/src/shell/api/event.ts‎

Copy file name to clipboardExpand all lines: packages/types/src/shell/api/event.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface IPublicApiEvent {
2121

2222
/**
2323
* 触发事件
24-
* emit a message fot a event
24+
* emit a message for a event
2525
* @param event 事件名称
2626
* @param args 事件参数
2727
* @returns

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.