Compare commits
2 Commits
13e639fa8d
...
55f9050dc9
Author | SHA1 | Date | |
---|---|---|---|
55f9050dc9 | |||
4e7d00db9b |
@ -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",
|
||||
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user