mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Fix ember tests for TS 3.9 (#44159)
TS 3.9 now forbids deleting properties that aren't optional or undefined. This
exposed a bug in ember tests where the tests were deleting a property
with the type `{} | null`. I changed the type to `{} | undefined` to
reflect what will actually happen at runtime.
This commit is contained in:
parent
402f540b7d
commit
9e4968cf95
@ -1,7 +1,7 @@
|
||||
import Ember from 'ember';
|
||||
|
||||
const LifetimeHooks = Ember.Object.extend({
|
||||
resource: null as {} | null,
|
||||
resource: undefined as {} | undefined,
|
||||
|
||||
init() {
|
||||
this._super();
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import Ember from 'ember';
|
||||
|
||||
const LifetimeHooks = Ember.Object.extend({
|
||||
resource: null as {} | null,
|
||||
resource: undefined as {} | undefined,
|
||||
|
||||
init() {
|
||||
this._super();
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import EmberObject, { computed, notifyPropertyChange } from "@ember/object";
|
||||
|
||||
const LifetimeHooks = EmberObject.extend({
|
||||
resource: null as {} | null,
|
||||
resource: undefined as {} | undefined,
|
||||
|
||||
init() {
|
||||
this._super();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user