-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imported interfaces not displaying in Prop tables #9467
Comments
It's not about any imported type, but rather it's about using types stemming from an import of a default export. |
I have the same issue, and #9556 is not the same as the issue described here. @sami616 wrote
So it did render the base properties, and not like in 9556 described, nothing. // InptTextField.tsx
export interface InputTextFieldProps {
placeholder?: string;
labelId?: string;
error?: boolean;
}
// Input.tsx
import InputTextField, { InputTextFieldProps } from './elements/InputTextField';
export interface InputProps extends InputTextFieldProps {
forTag?: string;
labelText?: string;
}
const Input: FunctionComponent<InputProps> = ({ Output in Storybook:
So my properties from other file are ignored. |
This issue is a currently opened issue in react-docgen-typescript-loader/issues/47 The problem seems to lay deep:
(from paibamboo in the above issue) |
FYI we are recommending |
When extending an interface with another imported from another file, the prop table doesn't render any of the imported properties. I assume this would also apply when using the
Type
's too.eg:
☝🏼Prop table only outputs the disabled prop (ignores
bar
)The text was updated successfully, but these errors were encountered: