Compare commits

..

2 Commits

Author SHA1 Message Date
55f9050dc9 notify 2023-10-03 11:18:30 +03:00
4e7d00db9b update zod 2023-10-03 11:18:08 +03:00
2 changed files with 4 additions and 4 deletions

View File

@ -11,14 +11,14 @@
"main": "dist/index.js", "main": "dist/index.js",
"files": [ "files": [
"dist", "dist",
"tsconfig.ts" "tsconfig.json"
], ],
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"prepare": "npm run build" "prepare": "npm run build"
}, },
"dependencies": { "dependencies": {
"zod": "^3.22.1" "zod": "^3.22.2"
}, },
"devDependencies": { "devDependencies": {
"prettier": "^2.8.8", "prettier": "^2.8.8",

View File

@ -7,8 +7,8 @@ export class NotificationItem implements TNotificationItem {
code: string code: string
text: string text: string
constructor(args: { code: string; text: string }) { constructor(args: { text: string, code?: string }) {
this.code = args.code
this.text = args.text this.text = args.text
this.code = args.code || 'info'
} }
} }