-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support to avoid parsing const exported objects
- Loading branch information
Diego Landa
committed
Apr 27, 2017
1 parent
d9171ad
commit 8359235
Showing
3 changed files
with
87 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import * as React from 'react'; | ||
|
||
/** | ||
* Row properties. | ||
*/ | ||
export interface IRowProps { | ||
/** prop1 description */ | ||
prop1?: string; | ||
/** prop2 description */ | ||
prop2: number; | ||
/** | ||
* prop3 description | ||
*/ | ||
prop3: () => void; | ||
/** prop4 description */ | ||
prop4: 'option1' | 'option2' | "option3"; | ||
} | ||
|
||
/** | ||
* test | ||
* | ||
*/ | ||
export const test = (one: number) => { | ||
return one; | ||
} | ||
|
||
export const myObj = { | ||
foo: 'bar', | ||
} | ||
|
||
/** | ||
* Form row. | ||
*/ | ||
export const Row = (props: IRowProps) => { | ||
const innerFunc = (props: IRowProps) => { | ||
return <span>Inner Func</span> | ||
}; | ||
const innerNonExportedFunc = (props: IRowProps) => { | ||
return <span>Inner Func</span> | ||
}; | ||
return <div>Test</div>; | ||
}; | ||
|
||
const nonExportedFunc = (props: IRowProps) => { | ||
return <div>No Export</div> | ||
}; | ||
|
||
export default Row; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters