From c7dc74d7c2dce3b10759ba0bc48a8e2a7ea4acb4 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 26 Nov 2019 02:22:02 +0100 Subject: [PATCH] Added perPage property on Siema (#40451) * Added perPage property Siema makes the property perPage available, and it is useful to be able to read it, so I'm adding it to the type definition. * added test * added myself as contributor * fixed tests --- types/siema/index.d.ts | 2 ++ types/siema/siema-tests.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/types/siema/index.d.ts b/types/siema/index.d.ts index 66ee316f94..3b757d865f 100644 --- a/types/siema/index.d.ts +++ b/types/siema/index.d.ts @@ -3,10 +3,12 @@ // Definitions by: Irmantas Zenkus // Pavel Puchkov // Sam Nau +// Jonathan Loss // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export default class Siema { currentSlide: number; + perPage: number; constructor(options?: SiemaOptions); diff --git a/types/siema/siema-tests.ts b/types/siema/siema-tests.ts index 61635ce5a3..05b01cca79 100644 --- a/types/siema/siema-tests.ts +++ b/types/siema/siema-tests.ts @@ -25,3 +25,4 @@ siema.prepend(elem, () => {}); siema.append(elem, () => {}); siema.destroy(); siema.destroy(true, () => {}); +siema.goTo(siema.perPage);