Skip to content

Commit

Permalink
fix: typescript definitions (tomkp#232)
Browse files Browse the repository at this point in the history
* fix: typescript definitions

React and Prefixer have no default exports, but need to be imported as a module.

* fix: typescript definitions

Fixes a bug when importing default and single exports.
  • Loading branch information
aimed authored and tomkp committed Nov 12, 2017
1 parent 6dfe30a commit 5b7bcc7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions index.d.ts
@@ -1,5 +1,5 @@
import React, { CSSProperties } from 'react';
import Prefixer from 'inline-style-prefixer';
import * as Prefixer from 'inline-style-prefixer';
import * as React from 'react';

export type Size = string | number;

Expand All @@ -18,11 +18,11 @@ export interface Props {
onResizerClick?: (event: MouseEvent) => void;
onResizerDoubleClick?: (event: MouseEvent) => void;
prefixer?: Prefixer;
style?: CSSProperties;
resizerStyle?: CSSProperties;
paneStyle?: CSSProperties;
pane1Style?: CSSProperties;
pane2Style?: CSSProperties;
style?: React.CSSProperties;
resizerStyle?: React.CSSProperties;
paneStyle?: React.CSSProperties;
pane1Style?: React.CSSProperties;
pane2Style?: React.CSSProperties;
resizerClassName?: string;
step?: number;
}
Expand Down Expand Up @@ -50,4 +50,4 @@ declare class SplitPane extends React.Component<Props, State> {
static defaultProps: Props;
}

export { SplitPane as default };
export { SplitPane as default };

0 comments on commit 5b7bcc7

Please sign in to comment.