From 34d455bc2de1a54fd1fc79d953ef272e9be33c99 Mon Sep 17 00:00:00 2001 From: Egor Shulga Date: Tue, 26 Dec 2017 23:30:36 +0300 Subject: [PATCH] Fix typescript typings and documentation section of typeName prop (#210) * Typescript: allow null for typeName prop * Fix typo in typeName documentation section --- documentation/api_reference.md | 2 +- typings/react-flip-move.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/api_reference.md b/documentation/api_reference.md index 376580c..4d2cca6 100644 --- a/documentation/api_reference.md +++ b/documentation/api_reference.md @@ -279,7 +279,7 @@ In general, it is advisable to ignore the `domNodes` argument and work with the | **Accepted Types:** | **Default Value** | |----------------------|-------------------| -| `String` | `null` | 'div' | +| `String`, `null` | 'div' | Flip Move wraps your children in a container element. By default, this element is a `div`, but you may wish to provide a custom HTML element (for example, if your children are list items, you may wish to set this to `ul`). diff --git a/typings/react-flip-move.d.ts b/typings/react-flip-move.d.ts index 0021367..f1efe99 100644 --- a/typings/react-flip-move.d.ts +++ b/typings/react-flip-move.d.ts @@ -206,7 +206,7 @@ declare namespace FlipMove { * * @default "div" */ - typeName?: string; + typeName?: string | null; /** * Sometimes, you may wish to temporarily disable the animations and have the normal behaviour resumed. Setting this