From 41a53fe76d0c5d55c1bd2a9548cbe509d39c0dd8 Mon Sep 17 00:00:00 2001 From: Edward Faulkner Date: Mon, 23 Sep 2024 21:48:33 -0400 Subject: [PATCH] Fix statis-this type error --- addon/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addon/index.d.ts b/addon/index.d.ts index 29eec247..62789bc2 100644 --- a/addon/index.d.ts +++ b/addon/index.d.ts @@ -1,9 +1,11 @@ import { Resolver as ResolverContract } from "@ember/owner"; export default class Resolver { - static create(props: Record): InstanceType; - static withModules(modules: Record): this; + static create(this: T, props: Record): InstanceType; + static withModules(this: T, modules: Record): T; } export default interface Resolver extends Required { pluralizedTypes: Record; } + +