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",
"files": [
"dist",
"tsconfig.ts"
"tsconfig.json"
],
"scripts": {
"build": "tsc",
"prepare": "npm run build"
},
"dependencies": {
"zod": "^3.22.1"
"zod": "^3.22.2"
},
"devDependencies": {
"prettier": "^2.8.8",

View File

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