//// [file.tsx] import React = require('react'); const obj = {}; const obj1: { x: 2 } = { x: 2 } const obj3: {y: true, overwrite: string } = { y: true, overwrite: "hi" } interface Prop { x: 2 y: true overwrite: string } class OverWriteAttr extends React.Component { render() { return
Hello
; } } let anyobj: any; // OK let x = let x1 = let x2 = let x3 = let x4 = let x5 = //// [file.jsx] "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); exports.__esModule = true; var React = require("react"); var obj = {}; var obj1 = { x: 2 }; var obj3 = { y: true, overwrite: "hi" }; var OverWriteAttr = /** @class */ (function (_super) { __extends(OverWriteAttr, _super); function OverWriteAttr() { return _super !== null && _super.apply(this, arguments) || this; } OverWriteAttr.prototype.render = function () { return
Hello
; }; return OverWriteAttr; }(React.Component)); var anyobj; // OK var x = ; var x1 = ; var x2 = ; var x3 = ; var x4 = ; var x5 = ;