diff --git a/README.md b/README.md index 83d9326d..6174ea14 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ import Resolver from 'ember-resolver'; export default class AppResolver extends Resolver { pluralizedTypes = { + ...this.pluralizedTypes, 'sheep': 'sheep', 'strategy': 'strategies' } diff --git a/addon/index.d.ts b/addon/index.d.ts index 4f94d096..006fbb06 100644 --- a/addon/index.d.ts +++ b/addon/index.d.ts @@ -1,4 +1,6 @@ import { Resolver as ResolverContract } from "@ember/owner"; import EmberObject from "@ember/object"; export default class Resolver extends EmberObject {} -export default interface Resolver extends Required {} +export default interface Resolver extends Required { + pluralizedTypes: Record; +}