Skip to content

Commit

Permalink
feat(notifier): export Notifier types, fix #290
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jan 16, 2024
1 parent a3bb9bb commit 636de40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/notifier/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@koishijs/plugin-notifier",
"description": "Notifier service for Koishi",
"version": "0.0.1",
"version": "1.1.1",
"main": "lib/index.cjs",
"types": "lib/index.d.ts",
"exports": {
Expand Down Expand Up @@ -30,7 +30,7 @@
"bugs": {
"url": "https://github.com/koishijs/webui/issues"
},
"homepage": "https://koishi.chat/plugins/console/notifier.html",
"homepage": "https://koishi.chat/plugins/develop/notifier.html",
"keywords": [
"bot",
"chatbot",
Expand Down
4 changes: 2 additions & 2 deletions plugins/notifier/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ declare module '@koishijs/console' {
}
}

class Notifier {
export class Notifier {
public options: Notifier.Config
public dispose: () => void

Expand Down Expand Up @@ -74,7 +74,7 @@ class Notifier {
}
}

namespace Notifier {
export namespace Notifier {
export type Type = 'primary' | 'success' | 'warning' | 'danger'

export interface Options {
Expand Down

0 comments on commit 636de40

Please sign in to comment.