Files
axp-ts/src/notification.ts
2023-10-03 11:18:30 +03:00

15 lines
273 B
TypeScript

export type TNotificationItem = {
code: string
text: string
}
export class NotificationItem implements TNotificationItem {
code: string
text: string
constructor(args: { text: string, code?: string }) {
this.text = args.text
this.code = args.code || 'info'
}
}