Skip to content
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

Parse props from .d.ts file #231

Closed
klysak opened this issue Nov 28, 2019 · 4 comments
Closed

Parse props from .d.ts file #231

klysak opened this issue Nov 28, 2019 · 4 comments
Labels
stale There is no activity for a long time.

Comments

@klysak
Copy link

klysak commented Nov 28, 2019

Is there way to parse props from index.d.ts file?

For example i have Button.d.ts file


export type ButtonType = React.FC<IButtonProps>;

export interface IButtonProps {
    disabled?: boolean;
    ids: string[];
    title: string;
}

declare function Button(props: IButtonProps): ButtonType;

export = Button;

But i write my components by JavaScript not Typescript. Is it possible?

@github-actions
Copy link

github-actions bot commented Oct 9, 2021

There was no activity for a long time. Closing this issue as obsolete. In case it is still valid, please, open a new one.

@github-actions github-actions bot added the stale There is no activity for a long time. label Oct 9, 2021
@github-actions
Copy link

Closing this issue as obsolete.

@purefun
Copy link

purefun commented Oct 19, 2021

come from storybook. It's necessary to parse props from .d.ts file if you want to write a story for existed ui library link material ui in storybook.

@Jintus
Copy link

Jintus commented Aug 28, 2024

come from storybook. It's necessary to parse props from .d.ts file if you want to write a story for existed ui library link material ui in storybook.

I'm in the same case, it would be fantastic if we can parse doc from .d.ts files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale There is no activity for a long time.
Projects
None yet
Development

No branches or pull requests

3 participants