Skip to content

Commit

Permalink
Export type Options from component as ComponentOptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed Feb 21, 2024
1 parent 6fb5007 commit d03fc57
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/dry-tigers-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pionjs/pion": minor
---

Export type `Options` from component as `ComponentOptions`.
2 changes: 1 addition & 1 deletion src/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ interface Creator {
): Constructor<P>;
}

interface Options<P> {
export interface Options<P> {
baseElement?: Constructor<{}>;
observedAttributes?: KebabCase<keyof P>[];
useShadowDOM?: boolean;
Expand Down
7 changes: 6 additions & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { makeComponent, ComponentCreator } from "./component";
import {
makeComponent,
ComponentCreator,
Options as ComponentOptions,
} from "./component";
import { makeContext, ContextCreator } from "./create-context";
import { ChildPart } from "lit-html";

Expand Down Expand Up @@ -38,6 +42,7 @@ export {
GenericRenderer,
RenderFunction,
ComponentOrVirtualComponent,
ComponentOptions,
};
export { useCallback } from "./use-callback";
export { useEffect } from "./use-effect";
Expand Down

0 comments on commit d03fc57

Please sign in to comment.