]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
LayoutItem.update should return void (#8714)
authorEvert Timberg <evert.timberg+github@gmail.com>
Wed, 24 Mar 2021 17:38:25 +0000 (13:38 -0400)
committerGitHub <noreply@github.com>
Wed, 24 Mar 2021 17:38:25 +0000 (13:38 -0400)
types/layout.d.ts

index 1589008c161055ccc19b5288e6554a69152c92e9..36f3237f3d8008711134ac5bf01b75bb55d48fb1 100644 (file)
@@ -57,9 +57,9 @@ export interface LayoutItem {
         */
        isHorizontal(): boolean;
        /**
-        * Takes two parameters: width and height. Returns size of item
+        * Takes two parameters: width and height.
         * @param width
         * @param height
         */
-       update(width: number, height: number, margins?: ChartArea): number;
+       update(width: number, height: number, margins?: ChartArea): void;
 }