Fix getFilters overload order

This commit is contained in:
Alex Gleason 2023-08-12 13:57:20 -05:00
parent 808e8941b6
commit b852111ec5
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -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)