From 9d100a026cc651e491da5f93d3b3e5477f934e4f Mon Sep 17 00:00:00 2001 From: Sergey Astapov Date: Fri, 11 Aug 2023 16:23:25 +0000 Subject: [PATCH] fix: update docs around pluralizedTypes and type the field --- README.md | 1 + addon/index.d.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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; +}