Skip to content

Commit

Permalink
Export AsyncParams and AsyncSelectorProxy (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
elchininet authored Dec 4, 2023
1 parent 98d3701 commit 978d4e2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [2.0.1] - 2023-12-04

- Export `AsyncParams` and `AsyncSelectorProxy`

## [2.0.0] - 2023-12-03

- Implement query selection through dot notation
Expand Down
2 changes: 1 addition & 1 deletion src/@types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type AsyncSelectorBase = {
asyncParams: AsyncParams;
};

export type AsyncSelectorInstance = AsyncSelectorBase & {
export type AsyncSelectorInstance = Exclude<AsyncSelectorBase, '_element'> & {
element: Promise<Document | Element | ShadowRoot | null>;
all: Promise<NodeListOf<Element>>;
};
Expand Down
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
AsyncSelectorBase,
AsyncSelectorProxy,
AsyncParams
Expand Down Expand Up @@ -322,4 +322,9 @@ const getShadowDomSelectorProxy = (
get: getter
}
) as AsyncSelectorProxy;
};

export type {
AsyncParams,
AsyncSelectorProxy
};

0 comments on commit 978d4e2

Please sign in to comment.