react-docgen
react-docgen copied to clipboard
export types or interfaces from another files
file1
import * as React from 'react'
export interface interface1{
name: string
type?: string
}
export class Component1 extends React.Component<IconProps> {}
file2
import * as React from 'react'
import {interface1} from './file1'
export interface interface2{
value: string
type?: interface1
}
export class Component2 extends React.Component<IconProps> {}
the problem I have is that I have nested types and I can't get the types from the library only it give me the names of it .
is there any way to do this ? I wonder also if I can export interfaces or types from the file not only the component if I can do this I can map unique name to its implementation.