export interface ISlimScrollEvent { type : 'scrollToBottom' | 'scrollToTop' | 'scrollToPercent' | 'scrollTo' | 'recalculate' | 'lock' | 'unlock' ; y ? : number ; percent ? : number ; duration ? : number ; easing ? : 'linear' | 'inQuad' | 'outQuad' | 'inOutQuad' | 'inCubic' | 'outCubic' | 'inOutCubic' | 'inQuart' | 'outQuart' | 'inOutQuart' | 'inQuint' | 'outQuint' | 'inOutQuint' ; } export class SlimScrollEvent implements ISlimScrollEvent { type : 'scrollToBottom' | 'scrollToTop' | 'scrollToPercent' | 'scrollTo' | 'recalculate' | 'lock' | 'unlock' ; y ? : number ; percent ? : number ; duration ? : number ; easing : 'linear' | 'inQuad' | 'outQuad' | 'inOutQuad' | 'inCubic' | 'outCubic' | 'inOutCubic' | 'inQuart' | 'outQuart' | 'inOutQuart' | 'inQuint' | 'outQuint' | 'inOutQuint' ; constructor ( obj ? ) { this . type = obj . type ; this . y = obj && obj . y ? obj . y : 0 ; this . percent = obj && obj . percent ? obj . percent : 0 ; this . duration = obj && obj . duration ? obj . duration : 0 ; this . easing = obj && obj . easing ? obj . easing : 'linear' ; } }