import { SnotifyType } from '../types' ; import { Snotify } from '../interfaces' ; param target param { SnotifyType } propertyKey param { PropertyDescriptor } descriptor returns { { value : ( ( ... args : any [ ] ) => any ) } } constructor export function SetToastType ( target , propertyKey , descriptor ) { return { value : function ( ... args ) { ( args [ 0 ] as Snotify ) . config = { ... ( args [ 0 ] as Snotify ) . config , type : propertyKey } ; return descriptor . value . apply ( this , args ) ; } } ; }