Skip to content

Commit

Permalink
fix: event handler return Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed Dec 5, 2023
1 parent aa8d80b commit 453fe21
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"version": "1.3.4",
"version": "1.3.5",
"packageManager": "[email protected]",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-gopeed-ext/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-gopeed-ext",
"version": "1.3.4",
"version": "1.3.5",
"keywords": [
"gopeed"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/create-gopeed-ext/templates/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"gopeed": "^1.3.4",
"gopeed": "^1.3.5",
"gopeed-polyfill-webpack-plugin": "^1.0.2",
"prettier": "^3.0.3",
"webpack": "^5.75.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/gopeed-rest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gopeed/rest",
"version": "1.3.4",
"version": "1.3.5",
"description": "",
"main": "dist/index.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gopeed-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gopeed/types",
"version": "1.3.4",
"version": "1.3.5",
"description": "",
"main": "dist/index.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gopeed/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gopeed",
"version": "1.3.4",
"version": "1.3.5",
"description": "",
"main": "index.js",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions packages/gopeed/types/events.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export interface OnStartContext {
task: Task;
}

export type EventOnResolve = (ctx: OnResovleContext) => void;
export type EventOnStart = (ctx: OnStartContext) => void;
export type EventOnResolve = (ctx: OnResovleContext) => Promise<void> | void;
export type EventOnStart = (ctx: OnStartContext) => Promise<void> | void;

export interface Events {
onResolve: (handler: EventOnResolve) => void;
Expand Down

0 comments on commit 453fe21

Please sign in to comment.