allow loop to be boolean or number (#37749)

This commit is contained in:
izgeorge
2019-08-19 15:09:23 -07:00
committed by Sheetal Nandi
parent 853cc1c8da
commit 39eddf69f1
+2 -1
View File
@@ -10,8 +10,9 @@ import * as React from 'react';
export interface Options {
/**
* Defines if the animation should play only once or repeatedly in an endless loop
* or the number of loops that should be completed before the animation ends
*/
loop?: boolean;
loop?: boolean | number;
/**
* Defines if the animation should immediately play when the component enters the DOM
*/