Skip to content

Commit

Permalink
fix: update docs around pluralizedTypes and type the field
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeAstapov committed Aug 11, 2023
1 parent 8ce0c62 commit 9d100a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import Resolver from 'ember-resolver';

export default class AppResolver extends Resolver {
pluralizedTypes = {
...this.pluralizedTypes,
'sheep': 'sheep',
'strategy': 'strategies'
}
Expand Down
4 changes: 3 additions & 1 deletion addon/index.d.ts
Original file line number Diff line number Diff line change
@@ -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<ResolverContract> {}
export default interface Resolver extends Required<ResolverContract> {
pluralizedTypes: Record<string, string>;
}

0 comments on commit 9d100a0

Please sign in to comment.