diff --git a/typeTemplates/index.d.ts b/typeTemplates/index.d.ts index a682946..47724d8 100644 --- a/typeTemplates/index.d.ts +++ b/typeTemplates/index.d.ts @@ -114,12 +114,12 @@ export function _filterBy( export function filterNonNull(object: object): object; export function _filterNonNull(object: NilOr): NilOr; -export function findBy(pattern: MatchPattern, entityArray: T[]): T; +export function findBy(pattern: MatchPattern, entityArray: P[]): P; export function findBy(pattern: MatchPattern): (entityArray: T[]) => T; -export function _findBy( +export function _findBy( pattern: MatchPattern, - entityArray: NilOr -): NilOr; + entityArray: NilOr +): NilOr

; export function _findBy( pattern: MatchPattern ): (entityArray: NilOr) => NilOr;