Skip to content

Commit

Permalink
Fix statis-this type error
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed Sep 24, 2024
1 parent c709000 commit 41a53fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addon/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { Resolver as ResolverContract } from "@ember/owner";

export default class Resolver {
static create(props: Record<string, unknown>): InstanceType<this>;
static withModules(modules: Record<string, unknown>): this;
static create<T extends typeof Resolver>(this: T, props: Record<string, unknown>): InstanceType<T>;
static withModules<T extends typeof Resolver>(this: T, modules: Record<string, unknown>): T;
}
export default interface Resolver extends Required<ResolverContract> {
pluralizedTypes: Record<string, string>;
}


0 comments on commit 41a53fe

Please sign in to comment.