Closed Beraliv closed 4 years ago
Steps to add types:
package.json
:{
"types": "./types.d.ts",
}
declare namespace SimpleScrollBar {
export function initEl (element: Element): void;
export function initAll (): void;
export function moveBar (e: Event): void;
}
export default SimpleScrollBar
UPDATE
I checked it already and I advised wrong types.d.ts
Need to fix them
I will add PR soon
@Beraliv
Also this.
declare module "simple-scrollbar";
This was fixed by #51.
While adding import to TS file
The error is shown:
It would solve the problem