chore: Fix no-inferrable-types lint rule violations. (#6372)

This commit is contained in:
Aaron Dodson
2022-08-22 14:42:41 -07:00
committed by GitHub
parent 079699baff
commit 76b1e023e3
8 changed files with 18 additions and 20 deletions

View File

@@ -222,13 +222,13 @@ export class ConstantProvider {
* ``setFontConstants_`` to be the height of the text based on the font
* used.
*/
FIELD_TEXT_HEIGHT: number = -1; // Dynamically set.
FIELD_TEXT_HEIGHT = -1; // Dynamically set.
/**
* Text baseline. This constant is dynamically set in ``setFontConstants_``
* to be the baseline of the text based on the font used.
*/
FIELD_TEXT_BASELINE: number = -1; // Dynamically set.
FIELD_TEXT_BASELINE = -1; // Dynamically set.
/** A field's border rect corner radius. */
FIELD_BORDER_RECT_RADIUS = 4;

View File

@@ -27,9 +27,9 @@ import {Types} from './types.js';
* @alias Blockly.blockRendering.Measurable
*/
export class Measurable {
width: number = 0;
width = 0;
height: number = 0;
height = 0;
type: number;
xPos = 0;

View File

@@ -34,8 +34,8 @@ export class InputConnection extends Connection {
connectedBlock: BlockSvg|null;
connectedBlockWidth: number;
connectedBlockHeight: number;
connectionOffsetX: number = 0;
connectionOffsetY: number = 0;
connectionOffsetX = 0;
connectionOffsetY = 0;
/**
* @param constants The rendering constants provider.