Closed Beraliv closed 4 years ago
Two ways:
declare namespace SimpleScrollBar {
export function initEl (element: Element): void;
export function initAll (): void;
export function moveBar (e: Event): void;
}
export default SimpleScrollBar;
or
export default interface SimpleScrollBar {
initEl (element: Element): void;
initAll (): void;
moveBar (e: Event): void;
}
@buzinas what do you think about adding TS?
ping @buzinas what do you think?
Thanks for your contribution! Sorry for taking so long to merge this.
Connected to Issue#50