magic-akari / seamless-scroll-polyfill

Scroll Behavior polyfill
https://www.npmjs.com/package/seamless-scroll-polyfill
MIT License
159 stars 11 forks source link

Error: Expected 1 arguements, but got 0 #91

Closed projectX21 closed 4 years ago

projectX21 commented 4 years ago

I want to inlcude this polyfill in my Angular CLI project.

These steps I have done yet:

npm install seamless-scroll-polyfill --save

And in the src/polyfills.ts:

import { polyfill } from "seamless-scroll-polyfill";

polyfill();

But I get the following error:

ERROR in src/polyfills.ts:67:1 - error TS2554: Expected 1 arguments, but got 0.

67 polyfill();
   ~~~~~~~~~~

  node_modules/seamless-scroll-polyfill/dist/esm/index.d.ts:2:33
    2 export declare const polyfill: (options: IAnimationOptions) => void;
                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~
    An argument for 'options' was not provided.