dominique-mueller / angular-notifier

A well designed, fully animated, highly customizable, and easy-to-use notification library for your Angular application.
https://www.npmjs.com/package/angular-notifier
MIT License
245 stars 67 forks source link

autoHide does not exist #193

Closed phil123456 closed 2 years ago

phil123456 commented 4 years ago

dude update your doc please

phil123456 commented 4 years ago

Argument of type '{ autoHide: number; position: { horizontal: { position: "right"; distance: number; }; vertical: { position: "bottom"; distance: number; gap: number; }; }; }' is not assignable to parameter of type 'NotifierOptions'. Object literal may only specify known properties, and 'autoHide' does not exist in type 'NotifierOptions'.

(property) autoHide: number

dominique-mueller commented 3 years ago

The docs are actually correct, you forgot the behaviour named object that autoHide is part of.

Your correct options object would be:

  {
+   behaviour: {
      autoHide: number;
+   };
    position: {
      horizontal: {
        position: 'right';
        distance: number;
      }
      vertical: {
        position: 'bottom';
        distance: number;
        gap: number;
      }
    }
  }
dominique-mueller commented 2 years ago

Closing. Please re-open or create a new issue if you experience other issues :)