From 70b354ea486cab6561f5c94addecc57e7e549ded Mon Sep 17 00:00:00 2001 From: Pavel Vasek Date: Wed, 5 Apr 2017 22:08:18 +0200 Subject: [PATCH] fixing typescript build --- src/index.ts | 3 +++ src/propTypesParser.ts | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index c5f5103b..5a916887 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,8 @@ import { parse } from './propTypesParser'; +import { StyleguidistComponent, StyleguidistProps } from './docgenConverter'; export { parse, + StyleguidistComponent, + StyleguidistProps, } \ No newline at end of file diff --git a/src/propTypesParser.ts b/src/propTypesParser.ts index f8657fa9..59b9dda0 100644 --- a/src/propTypesParser.ts +++ b/src/propTypesParser.ts @@ -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); } \ No newline at end of file