Add unused generics to ComputedProperty
types for compatibility with @types/ember__object
#20387
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ember's preview-types remove the generic
Get
andSet
parameters from theComputedProperty
type that are included in@types/ember__object
.Unfortunately, this change caused compatibility issues for libraries that need to support both the
@types
packages and preview-types. While these libraries could drop support of "unwrapping" computed properties forget
, this ends up being a pretty big change, as shown here: machty/ember-concurrency#512.See machty/ember-concurrency#510 for more details. Until that issue is resolved, users of ember-concurrency are blocked from using preview-types.
Would love thoughts from @chriskrycho on this.