diff --git a/addon/this-fallback-helper.ts b/addon/this-fallback-helper.ts index 4d54a4d..00d3b16 100644 --- a/addon/this-fallback-helper.ts +++ b/addon/this-fallback-helper.ts @@ -3,9 +3,9 @@ import { deprecate } from '@ember/debug'; import { get } from '@ember/object'; import { assertIsDeprecation } from 'ember-this-fallback/types/deprecations'; -type Positional = [ - context: T, - path: K, +type Positional = [ + context: object, + path: string, deprecationJson: string | false ]; @@ -16,10 +16,7 @@ type Positional = [ * will be called with those params. */ const thisFallbackHelper = helper( - ([context, path, deprecationJson]: Positional< - T, - K - >) => { + ([context, path, deprecationJson]: Positional) => { if (deprecationJson) { const deprecation = assertIsDeprecation(JSON.parse(deprecationJson)); deprecate(...deprecation);