Skip to content

Commit 3bdc4b0

Browse files
committed
Export type Options from component as ComponentOptions.
1 parent 17190b1 commit 3bdc4b0

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.changeset/khaki-actors-work.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"haunted": minor
3+
---
4+
5+
Export type `Options` from component as `ComponentOptions`.

src/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ interface Creator {
2626
): Constructor<P>;
2727
}
2828

29-
interface Options<P> {
29+
export interface Options<P> {
3030
baseElement?: Constructor<{}>;
3131
observedAttributes?: (keyof P)[];
3232
useShadowDOM?: boolean;

src/core.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@ export { hook, Hook } from "./hook";
5252
export { BaseScheduler } from "./scheduler";
5353
export { State } from "./state";
5454
export type { Ref } from "./use-ref";
55+
export type { Options as ComponentOptions } from "./component";

0 commit comments

Comments
 (0)