From 7d3fb15b7d23d206ab2ca1b304c30a3f2496c75b Mon Sep 17 00:00:00 2001 From: Krystan HuffMenne Date: Mon, 27 Feb 2023 14:01:16 -0800 Subject: [PATCH] Add unused generics to ComputedProperty types ...for compat with @types/ember__object see https://github.com/machty/ember-concurrency/issues/510 --- types/preview/@ember/object/computed.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/preview/@ember/object/computed.d.ts b/types/preview/@ember/object/computed.d.ts index 30fa4938739..9d2966adfe4 100644 --- a/types/preview/@ember/object/computed.d.ts +++ b/types/preview/@ember/object/computed.d.ts @@ -5,7 +5,11 @@ declare module '@ember/object/computed' { * will be cached. You can specify various properties that your computed property is dependent on. * This will force the cached result to be recomputed if the dependencies are modified. */ - export default class ComputedProperty { + export default class ComputedProperty< + // Unused generics for compat with @types/ember__object package. + // see https://github.com/machty/ember-concurrency/issues/510 + Get = unknown, Set = Get + > { /** * Call on a computed property to set it into read-only mode. When in this * mode the computed property will throw an error when set.