Comments (1)
the reason for this is that there's basically no way to type Model usefully without a pile of lies. We either have to make all the schema methods completely useless but enable subclasses to satisfy Model, or we have to type Model to understand that its only useful as a subclass at which point if you use it directly you get a lot of never
.
If you can come up with a solution that satisfies both things, all for it, but I haven't dreamt one up yet myself and am suspicious that one doesn't exist given how TS does not like subclasses to narrow signatures.
from data.
Related Issues (20)
- Deprecations will fire spuriously under strict ES module builds HOT 4
- Attributes with defaultValue functions not persisting HOT 8
- 🛤️ tracking: The Road to Polaris ✨ HOT 3
- Request can't handle `null` as response HOT 3
- Overridden `Model` methods have incorrect `this` type HOT 1
- EmberData's native types don't compile with glint HOT 9
- @ember-data/debug/data-adapter.js: Cannot read properties of undefined (reading 'env') HOT 2
- The kind `collection` is missing in schema-record HOT 2
- "Cannot supply a different store via context than was used to create the request" on autorefresh HOT 2
- Error `Cannot read properties of undefined (reading 'env')` after updating to 5.3.4 (extending `@ember-data/store`) HOT 12
- [5.3.4] EmberData deprecation for `ember-inflector` is incorrect HOT 1
- inspector cannot inspect ember-data - ember-data/debug is missing app-reexports HOT 10
- [5.3.7] Issue with use in nested addon HOT 4
- [5.3.7] when using ember-cli-mirage `ember-inflector` must be a installed, otherwise production build is broken HOT 2
- [5.4.0-alpha.91] Incorrect/Missing typings HOT 4
- Error: Could not find module `@ember-data/adapter/rest` HOT 1
- [5.3.4+] `polyfillUUID` isn't anymore working when there was added over `@embroider/macros` option HOT 1
- Descendants of 'Model' cannot be upcast
- 'options' is undefined for 'attr<BooleanTransform>'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from data.