adopted-ember-addons / ember-cli-flash

Simple, highly configurable flash messages for ember-cli
https://www.npmjs.com/package/ember-cli-flash
MIT License
354 stars 113 forks source link

fix: add type for spreaded `FlashObject` options #411

Open charlesfries opened 4 weeks ago

charlesfries commented 4 weeks ago

Properties from CustomMessageInfo should be available on FlashObject because they are added to the instance in the constructor. This PR adds a new intersection type called FlashObjectWithOptions that declares this.

https://github.com/adopted-ember-addons/ember-cli-flash/blob/e9d99f5156cbf4c3877c95feb884c07e136498a9/ember-cli-flash/src/flash/object.js#L28

image