Skip to content

Commit

Permalink
Merge pull request #951 from SergeAstapov/pluralized-types-native-cla…
Browse files Browse the repository at this point in the history
…ss-fix

fix: update docs around pluralizedTypes and type the field
  • Loading branch information
ef4 committed Aug 15, 2023
2 parents 8ce0c62 + 9d100a0 commit c651f3a
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 c651f3a

Please sign in to comment.