diff --git a/types/backbone.marionette/backbone.marionette-tests.ts b/types/backbone.marionette/backbone.marionette-tests.ts index 2b86849622..643146ee52 100644 --- a/types/backbone.marionette/backbone.marionette-tests.ts +++ b/types/backbone.marionette/backbone.marionette-tests.ts @@ -114,7 +114,11 @@ class MyBaseView extends Marionette.View { } class MyView extends Marionette.View { - behaviors: any; + behaviors: any = { + DestroyWarn: { + message: 'hello' + } + }; constructor(model: MyModel) { super({ model }); @@ -122,12 +126,6 @@ class MyView extends Marionette.View { this.ui = { destroy: '.destroy' }; - - this.behaviors = { - DestroyWarn: { - message: 'hello' - } - }; } template() { diff --git a/types/ember/test/inject.ts b/types/ember/test/inject.ts index aed79066c8..de1dc9d854 100755 --- a/types/ember/test/inject.ts +++ b/types/ember/test/inject.ts @@ -5,7 +5,7 @@ class AuthService extends Ember.Service { } class ApplicationController extends Ember.Controller { - model: {}; + model = {}; string: string; transitionToLogin() {} } diff --git a/types/ember/test/private/computed-tests.ts b/types/ember/test/private/computed-tests.ts index fc810e64ff..4eaa024fbe 100644 --- a/types/ember/test/private/computed-tests.ts +++ b/types/ember/test/private/computed-tests.ts @@ -12,13 +12,11 @@ class Example1 extends Ember.Object.extend({ lastName: '', allNames: Ember.computed('fullName', function() { return [this.fullName]; - }), + }) as Ember.ComputedProperty, fullName: Ember.computed('firstName', 'lastName', function() { return `${this.firstName} ${this.lastName}`; }) }) { - allNames!: Ember.ComputedProperty; - fullName!: Ember.ComputedProperty; } const unwrappedGetters1: UnwrapComputedPropertyGetters = {} as any; diff --git a/types/ember/v2/test/inject.ts b/types/ember/v2/test/inject.ts index 3ea0176ea6..8b023c5bbd 100755 --- a/types/ember/v2/test/inject.ts +++ b/types/ember/v2/test/inject.ts @@ -5,7 +5,7 @@ class AuthService extends Ember.Service { } class ApplicationController extends Ember.Controller { - model: {}; + model = {}; string: string; transitionToLogin() {} } diff --git a/types/leaflet/leaflet-tests.ts b/types/leaflet/leaflet-tests.ts index fe9af41ea6..dd2f38a688 100644 --- a/types/leaflet/leaflet-tests.ts +++ b/types/leaflet/leaflet-tests.ts @@ -699,7 +699,6 @@ const AsyncCanvasLayer = L.GridLayer.extend({ }); export class ExtendedTileLayer extends L.TileLayer { - options: L.TileLayerOptions; createTile(coords: L.Coords, done: L.DoneCallback) { const newCoords: L.Coords = (new L.Point(coords.x, coords.y) as L.Coords); newCoords.z = coords.z; diff --git a/types/ol/ol-tests.ts b/types/ol/ol-tests.ts index 36d020e7d2..f065270316 100644 --- a/types/ol/ol-tests.ts +++ b/types/ol/ol-tests.ts @@ -300,7 +300,6 @@ interface CustomControlOptions extends ControlOptions { } class CustomControl extends Control { - element: HTMLElement; name: string; mapViewport?: HTMLElement; private readonly _boundListener: (e: Event) => void; diff --git a/types/polymer-ts/polymer-ts-tests.ts b/types/polymer-ts/polymer-ts-tests.ts index 3a9baf0e54..b9c398b121 100644 --- a/types/polymer-ts/polymer-ts-tests.ts +++ b/types/polymer-ts/polymer-ts-tests.ts @@ -2,7 +2,6 @@ namespace Components { export class TestComponent extends polymer.Base { public field: string = 'foo'; - public is: string; constructor() { super(); diff --git a/types/skatejs/test/components/no-shadow-root.ts b/types/skatejs/test/components/no-shadow-root.ts index 5b7cee16e5..18481ce060 100644 --- a/types/skatejs/test/components/no-shadow-root.ts +++ b/types/skatejs/test/components/no-shadow-root.ts @@ -59,7 +59,7 @@ class Mo extends MComponent { } class Mo2 extends MComponent2 { - props: Props; + props: Props = { greet: "hi" }; foo() { this.props.greet; }