fix(toast): proper type casting

This commit is contained in:
mhartington
2017-08-18 13:14:08 -04:00
parent 8cebb411aa
commit de5fc1f966
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ export default function(
const baseAnimation = new Animation(); const baseAnimation = new Animation();
const wrapperAnimation = new Animation(); const wrapperAnimation = new Animation();
const wrapperEle = <HTMLElement> baseElm.querySelector('.toast-wrapper'); const wrapperEle = baseElm.querySelector('.toast-wrapper') as HTMLElement
wrapperAnimation.addElement(wrapperEle); wrapperAnimation.addElement(wrapperEle);
switch (position) { switch (position) {

View File

@ -11,7 +11,7 @@ export default function(
const baseAnimation = new Animation(); const baseAnimation = new Animation();
const wrapperAnimation = new Animation(); const wrapperAnimation = new Animation();
const wrapperEle = <HTMLElement> baseElm.querySelector('.toast-wrapper'); const wrapperEle = baseElm.querySelector('.toast-wrapper') as HTMLElement
wrapperAnimation.addElement(wrapperEle); wrapperAnimation.addElement(wrapperEle);
switch (position) { switch (position) {
case 'top': case 'top':