Skip to content

Commit

Permalink
Add generic param to filter.get()
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbeck committed Apr 25, 2024
1 parent 6aab996 commit ecf0e5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export class Filter<T> {
this.filterFn.call(this.model, item, key, items);
};

ids() {
ids(): string[] {
var items = this.model._get(this.segments);
var ids = [];
if (!items) return ids;
Expand All @@ -351,7 +351,7 @@ export class Filter<T> {
return this._slice(ids);
};

get() {
get<S = unknown>(): S[] {
var items = this.model._get(this.segments);
var results = [];
if (Array.isArray(items)) {
Expand Down

0 comments on commit ecf0e5f

Please sign in to comment.