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

return type of getClientRect.height is any #1643

Closed
Trinovantes opened this issue Sep 18, 2023 · 1 comment
Closed

return type of getClientRect.height is any #1643

Trinovantes opened this issue Sep 18, 2023 · 1 comment

Comments

@Trinovantes
Copy link

In 9.2.1, Shape.d.ts is defining the return type of getClientRect as:

    getClientRect(config?: ShapeGetClientRectConfig): {
        width: any;
        height: any;
        x: number;
        y: number;
    };

Whereas in 9.1, it was correctly defining width/height as numbers:

    getClientRect(config?: ShapeGetClientRectConfig): {
        width: number;
        height: number;
        x: number;
        y: number;
    };
@lavrton
Copy link
Member

lavrton commented Sep 18, 2023

Good catch. Thanks.

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

2 participants