Fix getFilters overload order
This commit is contained in:
parent
808e8941b6
commit
b852111ec5
|
@ -99,8 +99,8 @@ function getFilterQuery(filter: Filter) {
|
|||
return query;
|
||||
}
|
||||
|
||||
async function getFilters(filters: Filter[]): Promise<SignedEvent[]>;
|
||||
async function getFilters<K extends number>(filters: [Filter<K>]): Promise<SignedEvent<K>[]>;
|
||||
async function getFilters(filters: Filter[]): Promise<SignedEvent[]>;
|
||||
async function getFilters(filters: Filter[]) {
|
||||
const queries = filters
|
||||
.map(getFilterQuery)
|
||||
|
|
Loading…
Reference in New Issue