Skip to content

Commit

Permalink
Merge pull request #985 from ember-cli/fix-static-this
Browse files Browse the repository at this point in the history
Fix static-this type error
  • Loading branch information
ef4 authored Sep 24, 2024
2 parents c709000 + 41a53fe commit 0915bcf
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 0915bcf

Please sign in to comment.