DefinitelyTyped/types/ember-data
Nathan Shively-Sanders 84d936db3f Ember workarounds and fixes for TS 3.4
1. Ember-data tests had the wrong return type in a couple of places. TS
3.4 catches this error, and this PR fixes it.
2. Ember-data's Model class became invariant in 3.4 because of its use of the
`this` type.  This PR uses a `this` parameter with a method-local type
parameter to avoid using Model's `this` type.
3. Ember v2's tests were broken by TS 3.4's more complete return-type
inference, which caused a variable declaration's type annotation to
break inference through contextual typing. This PR converts the type
annotation to type parameters on the call, which short-circuits
inference entirely. It's also shorter.
2019-02-26 14:38:40 -08:00
..
adapters
serializers
test
transforms
types/registries
v2
adapter.d.ts
attr.d.ts
index.d.ts
model.d.ts
relationships.d.ts
serializer.d.ts
store.d.ts
transform.d.ts
tsconfig.json
tslint.json