[@types/ember-data enhancement] - DS.Store.createRecord() doesn't type check inputProperties #251
Labels
enhancement
types:core:data
Something is wrong with the Ember Data type definitions
types:core
Something is wrong with the Ember type definitions
ember-cli: 3.3.0
node: 8.11.3
os: linux x64
TypeScript 2.9.2
My tsconfig.json
My tslint.json
How to reproduce?
Use
DS.Store.createRecord()
to create a new record and passinputProperties
that don't exist on theDS.Model
subclass:What did you expect to see?
Expectation is to get the same compiler errors as generated from the following code:
What happened instead?
There are no type errors emitted when
createRecord()
is called with invalid properties or with values of the incorrect type.The text was updated successfully, but these errors were encountered: