Comments (4)
ActionsHash
should be fixed in #24
from ember-typings.
The actual return type would be something like Promise<any> | any | void
, which reduces to any
from ember-typings.
🤔 Is there anywhere you'd directly call the hook yourself? I guess not, thinking about it. I was thinking it'd be helpful to be able to define those to work in a specific way so that you'd know whether you were returning what you'd claim. I think if it returns any
, the override a user supplies should be able to be more specific, right?
from ember-typings.
Right, you could have a more specific return type annotation to check that you implemented it correctly.
In practice all my model hooks would return something like DS.Model | PromiseLike<DS.Model>
, however we can't assume everyone uses E-D
from ember-typings.
Related Issues (17)
- Typings for qunit
- [DRAFT!!!] QUEST: Let's type the Ember.js ecosystem! HOT 10
- TS errors when extending object literal attempts to define/override init HOT 4
- `this` context lost in computed getters HOT 4
- No type checks in other files when exporting `typeof MyModel.prototype` without another `typeof`. HOT 1
- Missing re-export for Rsvp
- Ember typing issues to fix HOT 3
- Interface 'NativeArray<T>' incorrectly extends interface 'MutableArray<T>' HOT 5
- cannot find module '@ember/error' HOT 3
- Using ES classes with Route, model, and async HOT 2
- WARNINGs when using 'get()' HOT 3
- [ember-data]: Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method HOT 5
- Wrong typing for `this.addObserver` in a component HOT 2
- htmlSafe() has no return type but is SafeString HOT 3
- Mark as deprecated? HOT 1
- Typings for ember prototype extensions HOT 10
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 ember-typings.