Skip to content

Commit

Permalink
Add more comments
Browse files Browse the repository at this point in the history
I don't understand why this works so let's make sure this isn't easily
reverted before checking git-blame
  • Loading branch information
eps1lon committed Jan 15, 2022
1 parent 9d8843f commit b55dde9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions types/get-queries-for-element.d.ts
Expand Up @@ -176,6 +176,7 @@ export interface Queries {
}

export function getQueriesForElement<
T extends Queries = typeof queries,
K extends T = T,
>(element: HTMLElement, queriesToBind?: K): BoundFunctions<K>
QueriesToBind extends Queries = typeof queries,
// Extra type parameter required for reassignment.
T extends QueriesToBind = QueriesToBind,
>(element: HTMLElement, queriesToBind?: T): BoundFunctions<T>

0 comments on commit b55dde9

Please sign in to comment.