Skip to content

Commit

Permalink
Fix typescript typings and documentation section of typeName prop (#210)
Browse files Browse the repository at this point in the history
* Typescript: allow null for typeName prop

* Fix typo in typeName documentation section
  • Loading branch information
egorshulga authored and joshwcomeau committed Dec 26, 2017
1 parent b13537a commit 34d455b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion documentation/api_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`).
Expand Down
2 changes: 1 addition & 1 deletion typings/react-flip-move.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34d455b

Please sign in to comment.