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

Handle TS namespaces correctly #9

Closed
Swatinem opened this issue Feb 14, 2019 · 1 comment
Closed

Handle TS namespaces correctly #9

Swatinem opened this issue Feb 14, 2019 · 1 comment

Comments

@Swatinem
Copy link
Owner

See #8 (comment)

export declare function Alert(props: AlertProps): JSX.Element;
export declare namespace Alert {
    var defaultProps: {
        type: string;
    };
}

This is also related to #7

I just recently learned what typescript namespaces actually are and how to use them in declaration files. I think its a little more complicated to make them work correctly.

@Swatinem
Copy link
Owner Author

should be mostly fixed by 69b1198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant