Skip to content

Nested interfaces support #9

Description

@Evertvdw

Hello there! I wanted to try out displaying a TS interface in storybook and found ur addon. I got it working but I noticed that it will only put the top level keys in the table, is there any chance you will be adding support for nesting as well?

For example:

export interface Tokens {
    /** The border with of the banner
     * @default base.borderWidth
     */
    borderWidth?: string;
    /** Padding settings for the banner */
    padding?: {
        /** Inline padding of the banner; between the border and the content
         * @default 'base.space.s 0'
         */
        inline?: string;
        /** Padding of the content
         * @default 'base.space.xs 0'
         */
        content?: string;
    };
}

will render two lines where the type column of padding is { inline?: string; content?: string; }. I would expect two entries with names: padding.inline and padding.content. Do you agree?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions