Skip to content

Commit

Permalink
fixing typescript build
Browse files Browse the repository at this point in the history
  • Loading branch information
pvasek committed Apr 5, 2017
1 parent a751026 commit 70b354e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { parse } from './propTypesParser';
import { StyleguidistComponent, StyleguidistProps } from './docgenConverter';

export {
parse,
StyleguidistComponent,
StyleguidistProps,
}
4 changes: 2 additions & 2 deletions src/propTypesParser.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { getDocumentation } from './parser';
import { convertToDocgen } from './docgenConverter';
import { convertToDocgen, StyleguidistComponent } from './docgenConverter';

/**
* Parser given file and return documentation in format compatibe with react-docgen.
*/
export function parse(filePath: string) {
export function parse(filePath: string): StyleguidistComponent {
const doc = getDocumentation(filePath);
return convertToDocgen(doc);
}

0 comments on commit 70b354e

Please sign in to comment.