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