import { SnotifyTypeType } from '../types/snotify-type.type' ; import { Snotify } from '../interfaces/snotify.interface' ; param target param propertyKey param descriptor returns export function SetToastType ( target , propertyKey , descriptor ) { return { value ( ... args ) { ( args [ 0 ] as Snotify ) . config = { ... ( args [ 0 ] as Snotify ) . config , type : propertyKey } ; return descriptor . value . apply ( this , args ) ; } } ; }