Skip to content

Commit

Permalink
Fix TypeScript export type (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsaarinen authored and joshwcomeau committed Jan 30, 2018
1 parent d2b1c26 commit 59b8d92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion typings/react-flip-move.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { Component, ReactElement } from 'react';

export as namespace FlipMove;
export = FlipMove;
export default FlipMove;

declare class FlipMove extends Component<FlipMove.FlipMoveProps, any> { }

Expand Down
2 changes: 1 addition & 1 deletion typings/test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable:max-classes-per-file

import * as React from 'react';
import * as FlipMove from '..';
import FlipMove from '..';

function childHook(el: React.ReactElement<any>, node: HTMLElement) {}
function childrenHook(els: Array<React.ReactElement<any>>, nodes: Array<HTMLElement>) {}
Expand Down

0 comments on commit 59b8d92

Please sign in to comment.