Files
axp-ts/src/notification.ts

15 lines
273 B
TypeScript
Raw Normal View History

2023-07-11 09:53:08 +03:00
export type TNotificationItem = {
code: string
text: string
}
export class NotificationItem implements TNotificationItem {
code: string
text: string
2023-10-03 11:18:30 +03:00
constructor(args: { text: string, code?: string }) {
2023-07-11 09:53:08 +03:00
this.text = args.text
2023-10-03 11:18:30 +03:00
this.code = args.code || 'info'
2023-07-11 09:53:08 +03:00
}
}