From 39eddf69f11deee69719e6c6156d092841fe5474 Mon Sep 17 00:00:00 2001 From: izgeorge Date: Mon, 19 Aug 2019 15:09:23 -0700 Subject: [PATCH] allow loop to be boolean or number (#37749) --- types/react-lottie/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/react-lottie/index.d.ts b/types/react-lottie/index.d.ts index d547396a11..5511507487 100644 --- a/types/react-lottie/index.d.ts +++ b/types/react-lottie/index.d.ts @@ -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 */